Home Forums WinForms controls Xceed Grid for WinForms Very simple questions Reply To: Very simple questions

User (Old forums)
Post count: 23064

thanks for an asnwer.
i am not sure it’s work correct.
my grid contains dataRows. and i am allow to select only one row for now
CurentRow which is Row and dataRow two differ classes.
at the same time this expample does not work.

foreach( Row row in gridControl1.SelectedRows )
if (row is DataRow)
gridControl1.SelectedRows.Remove( row );

it throw exception:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at Xceed.Utils.Collections.Enumerator.MoveNext()

Sorry! seems to me i am missing something.

Imported from legacy forums. Posted by roland100 (had 319 views)