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: June 24, 2019).
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:





1831 Nov 29,2002 06:14 AM UTC Nov 29,2002 08:45 AM UTC WinForms 1
Tags: FAQ
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;


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