HA
haneefm
Syncfusion Team
October 4, 2007 08:31 PM UTC
Hi John,
You can use the UnsortedRecords property to find the newly record and set that record as current record using the SetCurrent method. Below are the codes that shows this task.
GridTable _table = this.gridGroupingControl1.GetTable("TableName");
int Oldcount = _table.UnsortedRecords.Count;
DataTable dt = ds.Tables["TableName"];
DataRow dr = dt.NewRow();
dr["Col1"] = "NewValue";
dt.Rows.Add(dr);
dt.AcceptChanges();
_table.UnsortedRecords[Oldcount].SetCurrent("ColumnName");
_table.UnsortedRecords[Oldcount].SetSelected(true);
Best regards,
Haneef