Results 1 to 2 of 2

Thread: Hide Datagrid row

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    95

    Thumbs up Hide Datagrid row

    I have a datagrid in my page with column name resnub(with duplicate rows with same resnub values). i need to make that number as a hyperlink, and if i clik that, another row(duplicate resnub row shd be displayed). here im attaching the images that i want.

    v.r.mahendran
    Attached Images Attached Images   

  2. #2
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Re: Hide Datagrid row

    In your Datagrid_ItemDataBound you can hide rows by using the DataGridItem object and setting it's visible property to false.

    VB Code:
    1. Private Sub Datagrid_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles Datagrid.ItemDataBound
    2.         Dim dgItem As DataGridItem
    3.         If Not ((itemType = ListItemType.Pager) Or (itemType = ListItemType.Header) Or _
    4.            (itemType = ListItemType.Footer)) Then
    5.         dgItem.Visible = false
    6.         End If
    7. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width