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. (Last updated on: November 16, 2018).
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:

Created:

Updated:

Platform:

Replies:

24998 Feb 16,2005 09:51 AM UTC Feb 16,2005 10:16 AM UTC WinForms 1
loading
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];

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.

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

;