how can i select mutiple the records and highlight them in the grid control?

can i do that thank you everyone.


Answer this question

how can i select mutiple the records and highlight them in the grid control?

  • barak

    screen.width*0.5) {this.resized=true; this.width=screen.width*0.6; this.alt=' 查看全 ';}" border=0> 
    i am working on it now and almost finish it.but i found i can't control the current activated cell color.how can i fix it
    thank you
    jet



  • he.lin

    thank you everyone

  • jezekjkr

    Multi-select is not directly supported by the grid control. You can add a Logical column to the query that generates the cursor used for the grid, then check the rows that you want to select.

  • Tiger Jesse

    To anyone that'd use MultiSelectGrid class. Please use original unmodified version. Period.


  • i_dachev

    When you activate the cell the current control for that column is activated, the backcolor now comes from that control and the grids backcolor is not drawn.

    So... if you want that controls selected color to be the same as the row, you need to set it in an event like gotfocus or when.



  • GDK-Dev

    http://www.universalthread.com/wconnect/wc.dll LevelExtreme~2,2,9703
  • Vincent Yeap

    1st you need a way to track what the user has selected.  The easiest way is probably a logical field in the table, or a related table that you can toggle on and off.

    2nd you need to put code in the mousedown or click event for the textboxes of the grid that toggles the selection.

    3rd set Column.DynamicBackColor of each column.  Easiest is usually an IIF() with the RGB() settings.

  • markgoldin

    Looks like a screen shot from my FoxyClasses!

  • indirectX



  • brajoh

    thank you very much
    Jet

  • how can i select mutiple the records and highlight them in the grid control?