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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





24998 Feb 16,2005 09:51 AM UTC Feb 16,2005 10:16 AM UTC WinForms 1
Tags: GridControl
Phuoc Tu
Asked On February 16, 2005 09:51 AM UTC

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

Administrator [Syncfusion]
Replied On February 16, 2005 10:16 AM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon