Hi Kallyani,
Thanks for using Syncfusion products.
On server side we are having “SelectedRecordsChanged” event, which will get raised for a record click. Please refer the below code snippet which is used to get the selected record through the “SelectedRecordsChanged” event:
protected void GridGroupingControl1_RecordsChanged(object sender, Syncfusion.Grouping.SelectedRecordsChangedEventArgs e)
{
Record r = this.GridGroupingControl1.Table.CurrentRecord;
if(r != null)
this.TextBox1.Text = r.GetValue("id").ToString();
if (ViewState["currentrecord"] == null)
{
ViewState["currentrecord"] = r.GetValue("id").ToString();
}
else if (r != null && r.IsCurrent)
{
if (ViewState["currentrecord"].ToString() != r.GetValue("id").ToString())
{
Record currentrec = r;
this.TextBox1.Text = currentrec.GetValue("id").ToString();
}
}
}
As I mentioned in my previous post, doubleclick of a record or cell leads to Editmode. The above code works for a single click.
Please refer the sample from the below link, which illustrates the above:
http://www.syncfusion.com/support/user/uploads/Sample_6821c861.zipPlease try the above and let us know if this helps you out.
Regards,
Raji