Hi
I have a grid which I need to select multiple rows and process the contents of each rows cells
I have tried looping through the rows in the grid and checking the grid.Rows(i).Activated = true
but this only returns the first Active row in the grid.
Is there another property which distinguishes selected rows from non selected rows ??
Is there a difference between active and selected rows
Thanks
Colm
Hello,
I am not sure why are you doing this, because I do not know your scenario but it should work. Could you please try to attach if possible a small sample project reproducing the above mentioned issue, I will be happy to take a look at it.
wanted to get the rows that are selected and edit the cells only in grid but not entrie grid. Please help me. I am not able to get selected rows, its is displaying is 0
if
(BaseGrid.ActiveRow != null)
{
foreach(UltraGridRow row in BaseGrid.Rows)
if (row.Selected)
row.Activation =
Activation.AllowEdit;
}
I wanted to get the rows that are selected and edit the cells only in grid but not entrie grid. Please help me. I am not able to get selected rows, its is displaying is 0
You need to set the SelectTypeRowDefault property before you select the rows.
grid.DisplayLayout.SelectTypeRowDefault =
SelectType.Extended;
grid.DisplayLayout.Rows[0].Selected = true;
grid.DisplayLayout.Rows[1].Selected = true;
May be you have set the (UltraGrid Object).DisplayLayout.Override.SelectTypeRow property to select single row only.
Have a look at the options this provides.
I got my grid to do multiple selection by setting the property to the following value : Infragistics.Win.UltraWinGrid.SelectType.ExtendedAutoDrag