adjust the row height for some rows

Discussion in 'ASP .Net Datagrid Control' started by SalamOnAltern, Jun 7, 2006.

  1. I am creating DataGrid Dynamically on the fly and binding an empty one
    column datatable through a DataView object
    I would like to dynamically adjust the row height for some rows of the
    datagrid. Everything is done in the Page_Load event as follows

    dgDynamic =
    System.Activator.CreateInstance(GetType(DataGrid))
    dgDynamic.AutoGenerateColumns = False
    dgDynamic.CssClass = "dgcss"
    dgDynamic.DataSource = CreateDataSource()
    dgDynamic.DataBind()

    Then when I try to acces the table control as follows I

    'Dim Tbl As Table = dgDynamic.Controls(0)"
    I get out of index error, when checking in a debug session
    the dgDynamic.controls.coun = 0

    Any ideas or example on how to manipulate the cells ?

    Thanks
    SalamOnAltern, Jun 7, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. GhislainTanguay

    How to adjust the height between two rows

    GhislainTanguay, Oct 14, 2003, in forum: HTML
    Replies:
    1
    Views:
    604
    Steve Pugh
    Oct 14, 2003
  2. Cal Who
    Replies:
    1
    Views:
    921
    Cal Who
    Jun 2, 2010
  3. H.

    Automatically adjust TextBox's height

    H., Jun 29, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    211
    Michael Baltic
    Jun 29, 2005
  4. active

    Can't adjust table height

    active, Apr 3, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    112
    active
    Apr 3, 2007
  5. MattB
    Replies:
    0
    Views:
    113
    MattB
    Aug 6, 2004
Loading...

Share This Page