Re: [DOTNET] Find Current DataRow in Bound Control's Table

2002-06-11 Thread Ian Griffiths
You need to use the Form's BindingContext property to obtain the CurrencyManager for the data source. If it's just a DataTable use this: int position = BindingContext[myTable]; If it's a table inside a DataSet you can also do this: int position = BindingContext[myDataSet, "TableName"]; As

[DOTNET] Find Current DataRow in Bound Control's Table

2002-06-11 Thread Jay Ayliff
Hi List, In a Windows Forms VB application I have a DataGrid bound to a DataTable that was created at runtime. When I have clicked on a row in the grid how do I find the corresponding DataRow? I can't use the DataGrid's CurrentRowIndex because the grid is sortable, so the grid row number won't be