We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to map current record on datasource (use datatable) from current row on DataBoundGrid

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. Thanks, Phuoc Tu

1 Reply

AD Administrator 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];

Loader.
Live Chat Icon For mobile
Up arrow icon