This solution doesn't work as I would like.
I would use the CTRL and the CAPS options to select more than one row at the
same time and the mouse dragging it through the rows of the datagrid
selecting and unselecting the rows.
Then I would like to get all the rows selected...
> Hi..
>
[quoted text clipped - 21 lines]
> >
> > Many thanks
> This solution doesn't work as I would like.
> I would use the CTRL and the CAPS options to select more than one row at the
> same time and the mouse dragging it through the rows of the datagrid
> selecting and unselecting the rows.
> Then I would like to get all the rows selected...
I dont understand what do you mean by dragging, but as I understand when
you press the CTRL button, you can catch which button was pressed in
KeyUp or KeyDow or MouseUp event. Store first hti.Row in temperory
variable and check in those events if CTRL is pressed with left mouse
button click , if yes then select all the rows which are between first
hti.Row and second hti.Row.
by datagrid.select[hti.Row,hti.Column] get the primary key values of the
rows and do DataTable.Find and get the individual rows. And pass that
row collection to some other form...
As I understand you want to do multiple select as we do in Excel by
pressing SHIFT button
NQ - 04 Oct 2005 17:33 GMT
ok
I reached the result
Many thanks...
> > This solution doesn't work as I would like.
> > I would use the CTRL and the CAPS options to select more than one row at the
[quoted text clipped - 15 lines]
> As I understand you want to do multiple select as we do in Excel by
> pressing SHIFT button