I figured it out and thought let me post the solution.
// add naviagtion event to see which table is being navigated
dataGrid.Navigate += new NavigateEventHandler(Grid_Navigate);
protected void GridGradMap_Navigate(object sender, NavigateEventArgs e)
{
// s will get the table name
string s = ((DataGrid)sender).DataMember.ToString();
MessageBox.Show(s, "Table navigation information");
}
"berullus" wrote:
I have a datagrid in windows form bound to a dataset which has list of tables
. So, when the form is run I see + sign which could be expandable to range of
table names in the grid. How do I find out which table has been selected from
the list on the datagrid?