Hi Jeba,
Thank you very much for your help.
I tried the code and it did not work. RowCount is a property for the GridCountrol, not for the GridDataBoundGrid. I tried the loop with Rows.Count of the DataTable bounded to the grid, the boolean variable was always false no mater the row was selected or not.
The code does not have compile errors. But where should I declare GridRangeInfo?
Thank you again for you help.
Jerry
>Hi Jerry,
>
>1.Please try this code snippet:
>
>private void gridControl1_SelectionChanged(object sender, Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventArgs e)
>
>{
>
>for ( int i = 1 ; i <= this.gridControl1.RowCount ; ++i )
>
>{
>
>bool check=this.gridControl1.Selections.GetSelectedRows(true, false).Contains(GridRangeInfo.Row(i));
>
>if (check)
>
>{
>
>Console.WriteLine("Row "+i+" is Selected"+" This is "+check);
>
>}
>
>}
>
>
>
>2.Please refer this Forum thread,
>
Binding a cell
>Let us know if this helps.
>
>Best Regards,
>Jeba.
>