&nbsp;<%# DataBinder.Eval(Container.DataItem, "description") %>&nbsp;

















Much as i hate to admit it i am out of my deapth on this so any help would be much appreciated

Source: http://www.livejournal.com/community/aspdotnet/40421.html

    Hide a nested DataGrid in VB.net

    Date: 08/15/05 (Asp Dot Net)    Keywords: asp

    [Error: Irreparable invalid markup ('') in entry. Owner must fix manually. Raw contents below.]

    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







    AutoGenerateColumns="false">













    AutoGenerateColumns="false">




« huh. || Formatting the DataGrid... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home