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. Image for the cookie policy date

GDBG. How can I get RowIndex for specified DataRow?

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

1 Reply

AD Administrator Syncfusion Team May 17, 2004 07:04 AM

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; }

Loader.
Live Chat Icon For mobile
Up arrow icon