Row selection for datagrid control
-
Any one knows how to make the datagrid select the whole row when the mouse click on it? just like a list box. Thanks. eric feng www.infospec.com
-
Any one knows how to make the datagrid select the whole row when the mouse click on it? just like a list box. Thanks. eric feng www.infospec.com
Override mouse events and select row AFTER calling base method. public ... override ... OnMouse...(...) { base.OnMouse...(...); this.Select(...) } Hi, AW
-
Override mouse events and select row AFTER calling base method. public ... override ... OnMouse...(...) { base.OnMouse...(...); this.Select(...) } Hi, AW
this works, but when scroll the grid, the cell goes into edit mode. eric feng www.infospec.com
-
this works, but when scroll the grid, the cell goes into edit mode. eric feng www.infospec.com
I have no this trouble - I use overridden column style. Try to override next events ... may be OnScroll() (save selected row numbers, call base method and restore selection I think). Next trouble is with sorting. Previous algorithm doesn't work :confused:. Hi, AW