Home Forums WinForms controls Xceed Grid for WinForms CurrentRow Reply To: CurrentRow

Xceed Support
Post count: 5658

The use of each type of row is not necessarily the same between the types. You could cast them as Cell Row, from which they both inherit. Since, however, different assignation to each type, I suggest you do something like this instead:

if( gridControl1.CurrentRow is InsertionRow )
( ( InsertionCell )( ( InsertionRow )gridControl1.CurrentRow ).Cells[ 0 ] ).IdleValue = “bla”;
if( gridControl1.CurrentRow is Xceed.Grid.DataRow )
( ( Xceed.Grid.DataRow )gridControl1.CurrentRow ).Cells[ 0 ].Value = “blabla”;

Imported from legacy forums. Posted by CharlesB (had 4175 views)