Okay ... I am still no closer to understanding how to do this
so here is my desprate plea, I have a a datagrid nested in
another datagrid, I need to Hide this datagrid using asp.net(VB)
without refreshing the page. Each nested DataGrid must be able
to be hidden and expanded individually.
DataGrid1
DG1 Value
DG2 Value (instance One)
DG2 Value (instance One)
DG2 Value (instance One)
DG1 Value
DG2 Value (instance Two)
DG2 Value (instance Two)
DG2 Value (instance Two)
DG1 Value
DG2 Value (instance Three)
DG2 Value (instance Three)
DG2 Value (instance Three)
The current code i am using to hide the details is this from the
codebehind, but i am not entirely sure how it works It only hides
the first value.
Sub dgResortDetails_DataBound(sender as Object, e as DataGridItemEventArgs)
If e.Item.ItemType = ListItemType.Item OR e.Item.ItemType = ListItemType.AlternatingItem then
If e.Item.ItemIndex = "0" then
'Hide the Edit column control
e.Item.Cells(0).Controls(0).Visible = False
Else
e.Item.Cells(0).Controls(0).Visible = True
End If
End If
End Sub
The aspx file holds the nested datagrid
Much as i hate to admit it i am out of my deapth on this so any help would be much appreciated