Hi Rajagopal,
My underlying datasource is ArrayList and Not Datatable
What woudl be the change?
Thanks
Grace
>Hi Grace,
Thanks for your interest in Syncfusion Products.
1. To set the new row added as the active current row, try the code below in your button click handler.
int lastAddedRecord = this.gridGroupingControl1.Table.Records.Count-1;
this.gridGroupingControl1.Table.Records[lastAddedRecord].SetCurrent();
2. To disable all the rows except the current row, please try the code below in the QueryCellStyleInfo event of the GridGroupingControl.
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Element el = e.TableCellIdentity.DisplayElement;
if (el.Kind == DisplayElementKind.Record)
{
Record rec = el.GetRecord();
if (e.TableCellIdentity.ColIndex > 0 && e.TableCellIdentity.Table.CurrentRecord != rec)
{
e.Style.TextColor = SystemColors.InactiveCaptionText;
e.Style.CellType = "Static";
}
}
}
Please try the above code and let me know if this helps.
Have a nice time.
Regards,
Rajagopal