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.
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.
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
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?
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
Andrew L Arnott
Jet
Prabu.P
JohnLR
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
EricA MSFT
To anyone that'd use MultiSelectGrid class. Please use original unmodified version. Period.
RBowden
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
Michael G. Emmons