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.
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.
how can i select mutiple the records and highlight them in the grid control?
barak
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
jezekjkr
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
Vincent Yeap
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
indirectX
brajoh
Jet