Results 1 to 2 of 2

Thread: grid

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    grid

    My datagrid on a webform is populated usinig a datareader

    With dgNewTrades
    .DataSource = GetAllTrades
    .DataBind()
    End With

    where GetAllTrades is a datareader.
    The columns in the datagrid are boundcolumns

    How can I increase the width of some of the columns?
    Thanks

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    during a OnDatabind custom event handler:

    e.item.Cells(index).Attributes.Add("width","80")
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

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