Hi guys, I have the following situation.
I have a RadGrid control with two levels. Both levels are binded to two diferent ObjectDataSources.
The second Level (the DetailTable) expects ColumnA, ColumnB, and ColumnC.
However, the second objectdatasource (the one binded to the second level) will not always retrieve the three columns described above, instead, It would be returning ColumnA and ColumnC (not ColumnB) if necessary. So, I'm asking whether the source is retrieving this column or not. If it's not, then I manually hide this column in my ODSDetailTable_Selected event by doing something like that:
RadGrid1.MasterTableView.DetailTables[0].Columns.FindByUniqueName("ColumnB").Visible = false;
However, this is not working fine. The first time I click de + icon to expand the second level, the column is appearing with the following value : System.Data.DataRowView
Then, I collapse the row and click again in the + icon and this time the row is hiding the column as I manually specified before.
I have proved this method in my DetailTableDataBind and the issue is appearing as well.
Do you have any clue about this ?
Thanks,
François.
I have a RadGrid control with two levels. Both levels are binded to two diferent ObjectDataSources.
The second Level (the DetailTable) expects ColumnA, ColumnB, and ColumnC.
However, the second objectdatasource (the one binded to the second level) will not always retrieve the three columns described above, instead, It would be returning ColumnA and ColumnC (not ColumnB) if necessary. So, I'm asking whether the source is retrieving this column or not. If it's not, then I manually hide this column in my ODSDetailTable_Selected event by doing something like that:
RadGrid1.MasterTableView.DetailTables[0].Columns.FindByUniqueName("ColumnB").Visible = false;
However, this is not working fine. The first time I click de + icon to expand the second level, the column is appearing with the following value : System.Data.DataRowView
Then, I collapse the row and click again in the + icon and this time the row is hiding the column as I manually specified before.
I have proved this method in my DetailTableDataBind and the issue is appearing as well.
Do you have any clue about this ?
Thanks,
François.