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?

  • Martin Butcher

    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.



  • pranka

    http://www.universalthread.com/wconnect/wc.dll LevelExtreme~2,2,9703
  • Andrew L Arnott

    thank you very much
    Jet

  • Prabu.P



  • JohnLR

    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.

  • John SP

    Looks like a screen shot from my FoxyClasses!

  • EricA MSFT

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


  • RBowden

    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



  • Stacy Rothwell

    thank you everyone

  • Michael G. Emmons

    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.

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