PDA

Click to See Complete Forum and Search --> : Can anyone help? Selecting rows in DataGrid


Linda27
Aug 21st, 2000, 05:52 AM
I have a bound DataGrid (read only) and I want to be able to select multiple rows when I click on them with the left mouse button (much like the multi select feature in a list box). How would I go about doing something like this? Or can someone point me to an example/article on selecting?

Thank you!

Linda

davidrobin
Aug 21st, 2000, 06:52 AM
Multi rows can be selected by holding the Ctrl key down and selecting the row.

Linda27
Aug 21st, 2000, 06:59 AM
Mine doesn't, so does that mean there is a property that has to be set that I haven't?

davidrobin
Aug 21st, 2000, 07:08 AM
Right click the datagrid and click Properties
Select the Splits tab
Ensure the 'Record Selectors' check box is checked, if not check it.

This will put a grey column down the left of your control when run. The black arrow will indicate the current record. Now press the Ctrl button select the row by clicking the grey area for the applicable rows.