Hi,
> Hi,
>
[quoted text clipped - 10 lines]
> AddNew row. I looked in the CurrencyManager but didn't find a reference
> to the row. Where can I find a reference to this row?
Even when you bind the DataGrid to a DataTable or DataSet it is always
internally bound to a DataView. The DataView includes the new row even when
it hasn't been accepted yet so it can still disappear when the user cancels
the new row.
CurrencyManager cm = (CurrencyManager)
dataGrid1.BindingContext[dataGrid1.DataSource, dataGrid1.DataMember];
DataView dv = (DataView)cm.List;
foreach ( DataRowView drv in dv )
Console.WriteLine( drv["columnName -or- index"] );
Note that DataView also has an event called ListChanged which may be usefull
to you...
HTH,
Greetings
> Thanks in advance!
>
[quoted text clipped - 7 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
RRB - 29 Nov 2005 15:09 GMT
Hi Bart,
I got sidetracked by some other issues so I'm only just getting back to
this issue. Thanks for your reply, the List property is exactly what I
need.
Thanks again,
RRB
======================
blackbox testing prerequisites:
1 white box
1 black marker