Set column width in the datagrid in the ItemdataBound event

Discussion in 'ASP .Net Datagrid Control' started by Naveen, Aug 1, 2006.

  1. Naveen

    Naveen Guest

    Hello ,

    I want to set the column in the datagrid in the ItemDataBound event
    e.Item.Cells[0].Width = new Unit("100px"); is not working.
    Please suggest alternate solution
     
    Naveen, Aug 1, 2006
    #1
    1. Advertising

  2. Naveen

    Naveen Guest

    The thing is that i need to only change the column width for that particular
    row.


    "Naveen" <> wrote in message
    news:ean1d6$a8f$...
    > Hello ,
    >
    > I want to set the column in the datagrid in the ItemDataBound event
    > e.Item.Cells[0].Width = new Unit("100px"); is not working.
    > Please suggest alternate solution
    >
    >
     
    Naveen, Aug 1, 2006
    #2
    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. Cal
    Replies:
    1
    Views:
    535
    Tim B
    Jan 8, 2007
  2. MW
    Replies:
    2
    Views:
    165
  3. Carl Howarth

    DG Column Width vs Table Column Width

    Carl Howarth, Oct 22, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    271
    Eliyahu Goldin
    Oct 24, 2004
  4. Ken

    formating column in the ItemDataBound event

    Ken, Nov 3, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    125
  5. NH
    Replies:
    2
    Views:
    538
    Andrew L. Van Slaars
    Dec 17, 2004
Loading...

Share This Page