I have two gridTemplatecolumns with linkbuttons that have the commands "File" and "Comments" in the parentGrid. There are two detailsTables inside the parentGrid. When a linkbutton is clicked I only wish to display one of the nested detailsTables. At the moment both are displaying. In the item command of the radgrid I have put the following code
If e.CommandName = "Files" Then
e.Item.OwnerTableView.DetailTables(0).Visible =
False
e.Item.OwnerTableView.DetailTables(1).Visible =
True
End If
If e.CommandName = "Comments" Then
e.Item.OwnerTableView.DetailTables(0).Visible =
True
e.Item.OwnerTableView.DetailTables(1).Visible =
False
End If
But this does not change the visibilty of the nested tables.
How can I show the nested table dependant on which linkbutton is clicked?