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 can I get the single row in a datagrid when click on it

Thread ID:

Created:

Updated:

Platform:

Replies:

1831 Nov 29,2002 01:14 AM Nov 29,2002 03:45 AM Windows Forms 1
loading
Tags: FAQ
UESTC
Asked On November 29, 2002 01:14 AM

I use datagrid.CurrentRowIndex, but this value can not be mapped to the datasource. How to get the rowindex of the datasource when clicked the datagrid? thanks.

Administrator [Syncfusion]
Replied On November 29, 2002 03:45 AM

You can try using the Position property of the CurrencyManager object. CurrencyManager cm = (CurrencyManager) this.BindingContext[this.dataGrid1.DataSource, this.DataGrid1.DataMember]; int index = cm.Position;

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.

;