Strange behavior

Discussion in 'ASP .Net Datagrid Control' started by Shawn, Nov 7, 2003.

  1. Shawn

    Shawn Guest

    I have a DataGrid with 5 boundcolumns. The first 4 are visible, but the
    fifth one has visibility set to false. In my codebehind file I have a
    myDataGrid_ItemDataBound method where I try and set it's visibility to true.
    Like this: e.Item.Cells(4).Visible = True . This does not work, but the
    strange thing is that it works if I do it the other way around. If the
    boundcolumn has visibility set to true then I can set it to false
    myDataGrid_ItemDataBound.. I'm sure there is a logically explanation to
    this. I just haven't found it.....

    Shawn
     
    Shawn, Nov 7, 2003
    #1
    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. sstark
    Replies:
    0
    Views:
    471
    sstark
    Mar 6, 2005
  2. ryang
    Replies:
    1
    Views:
    972
    Wes Groleau
    Apr 11, 2005
  3. Apogee

    Strange Behavior with ViewState

    Apogee, Jul 3, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    336
    Apogee
    Jul 3, 2003
  4. PJ

    DropDownList Strange Behavior

    PJ, Jul 8, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    357
  5. Mantorok Redgormor
    Replies:
    70
    Views:
    1,822
    Dan Pop
    Feb 17, 2004
Loading...

Share This Page