Can´t get dataGrid.select to work properly
All,
I want to highlight several rows at the same time in a datagrid, as the user chooses with his mousebutton.
I am using the following lines:
System.Windows.Forms.DataGrid.HitTestInfo hti;
hti = this.dataGrid1.HitTest(e.X,e.Y);
this.dataGrid.Select(hti.Row);
This works fine as long as the user doesn´t use his left mouseButton cause then everything that is highlighted
disapears? Why doesn´t dataGrid.Select work when one is
using the left mousebutton? I´m using the event dataGrid_MouseDown.
Why is that?
Thanks
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

AdministratorRank #675 · 3.6K reputationPosted Mar 11, 2003, 9:41 PM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 12, 2003, 2:49 AM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 12, 2003, 7:34 PM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 17, 2003, 10:16 AM EST