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

GDBG. How can I get RowIndex for specified DataRow?

Thread ID:





14037 May 17,2004 10:06 AM UTC May 17,2004 11:04 AM UTC WinForms 1
Tags: GridControl
Asked On May 17, 2004 10:06 AM UTC

I Have a DataRow object. How can I get corresponding RowIndex in the Grid for that specified datarow? Regards, Slava.

Administrator [Syncfusion]
Replied On May 17, 2004 11:04 AM UTC

Normally, you would use the CurrencyManager. CurrencyManager cm = (CurrencyManager)this.BindingContext[this.grid.DataSource, this.grid.DataMember]; DataView dv = cm.List as DataView; if(dv != null) { int position = this.grid.Binder.RowIndexToPosition(someRowIndex); DataRowView drv = cm.List[postion]; DataRow dr = drv.Row; }


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