You need to use the currency manager. This will let you get at the actual
row that's current and from that row you will be able to determine which
table you are in, whether there are child or parent rows etc etc.
CurrencyManager cm = (CurrencyManager) dataGrid1.BindingContext[myDataSet];
DataRowView row = (DataRowView) cm.Current;
Hope that helps,
--
--------------------------------------------------------
Peter Wright (
www.petewright.org)
Author of ADO.NET Novice To Pro
From Apress.
www.apress.com (and 10
other doorstops from Wrox)
Marjolein Hubrecht said:
Hi
How do I determine on the currentcellchanged event of my datagrid if the
currentcell is in a parent row or in a child row?
Thanks
Marjolein