Hi Rebecca,
Here is my response to your query.
1) We afraid we are not able to reproduce the issue as you mentioned. Could you please send us your sample which causes this issue. So that we could sort out the cause of the issue and provide you a solution.
2) After specifying the valid Delete command to DatasourceControl, you can call the below code snippet in the BarButtonItemClicked event.
if (e.ButtonBarItem.ButtonBarItemType == ButtonBarItemType.DeleteRow)
{
Record r = this.GridGroupingControl1.Table.CurrentRecord;
this.AccessDataSource1.DeleteParameters.Add("@id", r.GetValue("EmployeeID").ToString());
//Will automatically deletes the current record once the DeleteRow ButtonBarItem is pressed
this.AccessDataSource1.Delete();
}
3) You can read the value of the Current record row once the Save button of the ButtonBarItem is clicked using the below code snippet.
In the GridGroupingControl's CurrentRecordContextChange event
//Update the database once the editing is called.
if(e.Action == CurrentRecordAction.EndEditCalled)
{
//Ensures that AddNewRow is affected.
if(r.GetSourceIndex() == -1)
{
String str=r.GetValue("Columnname").ToString();
}
}
Attached is the sample in which the Current record value is retrieved at runtime.
http://websamples.syncfusion.com/samples/Grid.Web/5.1.0.51/F63391/GridGroupingControl_Forum63391/main.htmSample Description
------------------
* In our sample, we bind the GridGroupingControl with the AccessDatasourceControl.
* In the CurrentRecordContextChange event We have displayed the value of the AddnewRow in the ListBox once the Editing is completed.
Please try running the above sample and let me know if this helps.
Regards,
Gokulkumar B