This is a migrated thread and some comments may be shown as answers.

current row while using multi-selection

1 Answer 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Markus Besau
Top achievements
Rank 1
Markus Besau asked on 28 May 2010, 08:52 AM
Hey there!

I'm using Q1 2010 ComboBoxColumns in my GridView. For multi-editing 1-n items in my GridView i added a SelectionColumn and some controls outside the GridView so i can select as many items i want and use the outside controls for setting the properties for the selected items.

Furthermore it should be possible to edit one GridViewItem by setting the property directly by choosing from the ComboBoxColumn at the specific row. It would be great if i can do so without unselecting the other selected items. GridView.SelectedItems return all selected items of course, GridView.CurrentItem or GridView.SelectedItem returns the first selected item. I guess the GridView knows which row i'm editing because of the "cursor-editing" icon on the left side when clicking into one row.

For my purpose it is mandatory to retrieve this information in my CodeBehind, because i'm using 5 GridViewComboBoxColumns and their items are depending on the other selected ComboBoxItems, so if i select an item from the first ComboBoxColumn, the items of the second ComboBoxColumn have to be filtered because of my selection.

So i need to get the current row in my CodeBehing or a nice way to filter the ComboBoxColumns by DataBinding or any other way.

Looking forward to hearing from you.
All the best,
Markus

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 31 May 2010, 02:18 PM
Hi Markus Besau,

You may try to use the property of the grid SelectionMode and set it to "Multiple" or "Extended".  More information about that can be found in our online documentation.
 

All the best,
Maya
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Markus Besau
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or