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. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.