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.
Syncfusion Feedback

GDBG. How can I Get current row in the nested table?

Thread ID:

Created:

Updated:

Platform:

Replies:

13966 May 14,2004 10:30 AM UTC May 14,2004 11:58 AM UTC WinForms 2
loading
Tags: GridControl
Silenter
Asked On May 14, 2004 10:30 AM UTC

Hi all, i Have two tables are related. I need to get current row in the nested table. I tried String path = dataset11.Portfolio.TableName + "." + dataset11.Relations[0].RelationName; BindingManagerBase cm = BindingContext[dataset11, path]; object o = cm.Current; But, it always returns first row of the nested table. Regards, Slava.

Ben
Replied On May 14, 2004 11:54 AM UTC

>Hi all, i Have two tables are related. > >I need to get current row in the nested table. > I tried > String path = dataset11.Portfolio.TableName + "." + dataset11.Relations[0].RelationName; > BindingManagerBase cm = BindingContext[dataset11, path]; > > object o = cm.Current; > >But, it always returns first row of the nested table. > >Regards, Slava. Get the rowindex int rowIndex = Gridname.CurrentCell.RowIndex; GridBoundRecordState rs = gridname.Binder.GetRecordStateAtRowIndex(rowIndex); DataRowView drv = (DataRowView)rs.ListManager.Current; This should work for you. Ben

Ben
Replied On May 14, 2004 11:58 AM UTC

Here''s thread I had on this few weeks ago http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=12909

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

;