Datagrid Column resizing

Discussion in 'ASP .Net' started by Chakravarti Mukesh, Mar 10, 2006.

  1. Hi,
    How can column width of DataGrid could be changed(in late data binding)? By
    default width is decided by the column heading width.
    Thnaks
    Mukesh
     
    Chakravarti Mukesh, Mar 10, 2006
    #1
    1. Advertising

  2. Have you tried using the "itemstyle-width"
    Hope that helps
    Patrick


    "Chakravarti Mukesh" <> wrote in message
    news:...
    > Hi,
    > How can column width of DataGrid could be changed(in late data binding)?
    > By default width is decided by the column heading width.
    > Thnaks
    > Mukesh
    >
     
    Patrick.O.Ige, Mar 10, 2006
    #2
    1. Advertising

  3. Or you can do this for example for a button :-
    Private Sub DataGrid1_ItemCreated(ByVal sender As Object, ByVal e As
    System.Web.UI.WebControls.DataGridItemEventArgs) Handles
    DataGrid1.ItemCreated
    Dim drv As DataRowView
    If e.Item.ItemType = ListItemType.Item Then
    CType(e.Item.Cells(2).Controls(0), Button).Width =
    Unit.Point(250)
    End If
    end if
    Patrick


    "Chakravarti Mukesh" <> wrote in message
    news:...
    > Hi,
    > How can column width of DataGrid could be changed(in late data binding)?
    > By default width is decided by the column heading width.
    > Thnaks
    > Mukesh
    >
     
    Patrick.O.Ige, Mar 10, 2006
    #3
    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. James Gralton

    JTable resizing row/column cell header

    James Gralton, Jul 16, 2004, in forum: Java
    Replies:
    1
    Views:
    770
    Andrew Thompson
    Jul 16, 2004
  2. Daan
    Replies:
    9
    Views:
    503
  3. AimsLife
    Replies:
    2
    Views:
    498
    AimsLife
    Sep 13, 2007
  4. Pil (Trustworthy from Experience)

    Resizing a div by resizing its borders

    Pil (Trustworthy from Experience), Apr 18, 2009, in forum: Javascript
    Replies:
    9
    Views:
    360
    Proper
    Apr 21, 2009
  5. Proper
    Replies:
    0
    Views:
    206
    Proper
    Apr 18, 2009
Loading...

Share This Page