Hi David,
Thanks for contacting Syncfusion support.
We have analyzed the attached sample. In order to update the record navigation bar of grid when the records are added through the BindingNavigator, the AddingNew event of BindingSource can be used. In that event the update() method of RecordNavigationBar can be used to update the records count of grid. We have modified the sample as per your requirement. Please make use of the modified sample and below code,
Code example
BindingSource bind = new BindingSource();
bind.DataSource = GetTheGridTable();
//To set the DataSource of the grid.
this.gridGroupingControl1.DataSource = bind;
//To bind the data source of grid with BindingNavigator.
this.bindingNavigator1.BindingSource = this.gridGroupingControl1.DataSource as BindingSource;
this.gridGroupingControl1.ShowNavigationBar = true;
//Event triggering
this.bindingNavigator1.BindingSource.AddingNew += new AddingNewEventHandler(BindingSource_AddingNew);
//Event customization
void BindingSource_AddingNew(object sender, AddingNewEventArgs e)
{
//To update the RecordNavigationBar when the records are added through BindingNavigator
this.gridGroupingControl1.RecordNavigationBar.Update();
}
|
Note
Please let us know if we misunderstood your requirement.
Regards,
Arulpriya