Displaying label or textbox in grid depending on value

J

John Dalberg

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top