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

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

Thread ID:

Created:

Updated:

Platform:

Replies:

24998 Feb 16,2005 04:51 AM Feb 16,2005 05:16 AM Windows Forms 1
loading
Tags: GridControl
Phuoc Tu
Asked On February 16, 2005 04:51 AM

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

CONFIRMATION

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.

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.

;