AD
Administrator
Syncfusion Team
March 13, 2006 10:00 AM UTC
Hi Falk,
This can be achieved by moving the currentcell to the selected cell after changing the datasource. This happens, because the focus is lost as there is a change in the datasource. Here is the code snippet
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
int row = cc.RowIndex;
int col = cc.ColIndex;
this.gridGroupingControl1.DataSource = dt2;
this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(row,col);
Regards,
Madhan.