Datagrid and ColumnSpan

Discussion in 'ASP .Net Web Controls' started by mary, Sep 16, 2003.

  1. mary

    mary Guest

    I have a datagrid in which I have re-formatted some of the
    rows to appear as header rows using the RemoveAt and
    ColumnSpan methods of the Item object during initial
    loading of the grid. It works fine upon inital load of
    the datagrid. However, on postbacks, the column spanning
    and cell removal is lost, and the header rows are no
    longer formatted correctly. It seems that somehow this
    formatting information is not preserved in view state for
    postbacks. Does anyone know of a way this formatting can
    be saved through multiple postbacks?

    Thank you!!
     
    mary, Sep 16, 2003
    #1
    1. Advertising

  2. mary

    Alvin Bruney Guest

    you will need to redo every time the page is loaded basically
    "mary" <> wrote in message
    news:06a201c37c9c$8866d990$...
    > I have a datagrid in which I have re-formatted some of the
    > rows to appear as header rows using the RemoveAt and
    > ColumnSpan methods of the Item object during initial
    > loading of the grid. It works fine upon inital load of
    > the datagrid. However, on postbacks, the column spanning
    > and cell removal is lost, and the header rows are no
    > longer formatted correctly. It seems that somehow this
    > formatting information is not preserved in view state for
    > postbacks. Does anyone know of a way this formatting can
    > be saved through multiple postbacks?
    >
    > Thank you!!
     
    Alvin Bruney, Sep 17, 2003
    #2
    1. Advertising

  3. mary

    mary Guest

    Thank you very much - i was beginning to suspect this.
    >-----Original Message-----
    >you will need to redo every time the page is loaded

    basically
    >"mary" <> wrote in message
    >news:06a201c37c9c$8866d990$...
    >> I have a datagrid in which I have re-formatted some of

    the
    >> rows to appear as header rows using the RemoveAt and
    >> ColumnSpan methods of the Item object during initial
    >> loading of the grid. It works fine upon inital load of
    >> the datagrid. However, on postbacks, the column

    spanning
    >> and cell removal is lost, and the header rows are no
    >> longer formatted correctly. It seems that somehow this
    >> formatting information is not preserved in view state

    for
    >> postbacks. Does anyone know of a way this formatting

    can
    >> be saved through multiple postbacks?
    >>
    >> Thank you!!

    >
    >
    >.
    >
     
    mary, Sep 17, 2003
    #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. ajaymehra

    Columnspan in Datagrid ?

    ajaymehra, Feb 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,666
    Alvin Bruney [MVP]
    Feb 6, 2004
  2. geronimi
    Replies:
    0
    Views:
    468
    geronimi
    Jan 2, 2006
  3. =?Utf-8?B?U2Vhblc=?=
    Replies:
    0
    Views:
    656
    =?Utf-8?B?U2Vhblc=?=
    Apr 10, 2007
  4. Stephen Miller

    ColumnSpan and FooterStyle attributes

    Stephen Miller, Feb 6, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    160
    Stephen Miller
    Feb 6, 2004
  5. J055
    Replies:
    4
    Views:
    765
    Steven Cheng[MSFT]
    Jun 14, 2006
Loading...

Share This Page