Displaying label or textbox in grid depending on value

Discussion in 'ASP .Net' started by John Dalberg, Aug 12, 2004.

  1. John Dalberg

    John Dalberg Guest

    I have a datagrid which has two columns, bound to a database table. One
    column is static and the other is updatable. Instead of having the edit
    command button for each row like most grids do, I would instead like to
    display a label if the second column has data and a textbox if the column
    is blank (null) so that the user can enter data in the empry column.

    Do the rows need to be created dynamically to achieve this effect or what's
    the best way for doing this?

    John Dalberg
     
    John Dalberg, Aug 12, 2004
    #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. Replies:
    1
    Views:
    303
  2. Shari
    Replies:
    1
    Views:
    461
  3. aabid
    Replies:
    2
    Views:
    724
    aabid
    Jan 18, 2006
  4. aabid

    Displaying table field in TextBox or Label controls

    aabid, Jan 18, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    146
    aabid
    Jan 18, 2006
  5. Knut Krueger
    Replies:
    8
    Views:
    325
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page