I am using DataBoundGrid with datasource is datatable. During processing from user, they can addnew, edit, delete any row on Grid. How to map to record on datasource (datarow) from specified row on DataBoundGrid.
Anyone help me.
ADAdministrator Syncfusion Team February 16, 2005 05:16 AM
If the current position in the datasource you have is from the CurrencyManager.Position property on the currencymanager that the grid is using, then you can map it to a grid rowindex using grid.Binder.PositionToRowIndex. To get the CurrencyManager the grid is using, use code like:
CurrencyManager cm = (CurrencyManager)this.grid.BindingContext[this.grid.DataSource, this.grid.DataMember];