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

Thread ID:

Created:

Updated:

Platform:

Replies:

1831 Nov 29,2002 06:14 AM UTC Nov 29,2002 08:45 AM UTC WinForms 1
loading
Tags: FAQ
UESTC
Asked On November 29, 2002 06:14 AM UTC

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 08:45 AM UTC

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.

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

;