Results 1 to 2 of 2

Thread: Datagrid

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Pilipinas
    Posts
    441

    Datagrid

    How to change the datagrid columns width and label in ASP.NET??
    this code doesnt work;

    DataGrid1.DataSource = mDataSet.Tables("Table")
    DataGrid1.DataBind()
    With DataGrid1
    .Columns(0).HeaderText = "Employee No."
    End With

    Help please..

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Datagrid

    If you've created the datagrid in your ASPX (with the <asp:datagrid> tags), then you can specify the width in the header's tag there.

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