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
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.
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.
i just wanna do it like this
Kazu T
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.
NS_DICK
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
Tena
Ritesh Parikh
Jet
Nate L
ACorbs
To anyone that'd use MultiSelectGrid class. Please use original unmodified version. Period.
mithya
kweeyen
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.
Kache4
Marcio Martins