Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Displaying label or textbox in grid depending on value

Reply
Thread Tools

Displaying label or textbox in grid depending on value

 
 
John Dalberg
Guest
Posts: n/a
 
      08-12-2004

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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying table field in TextBox or Label controls aabid ASP .Net 2 01-18-2006 08:49 AM
Displaying table field in TextBox or Label controls aabid ASP .Net Web Services 0 01-18-2006 04:05 AM
How to transfer a value from an Invisible Grid to an visible Grid =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?= ASP .Net 2 10-17-2005 03:56 AM
Displaying different controls in repeater, depending on condition Shari ASP .Net 1 07-14-2004 12:47 AM
displaying a textboxes vs. listboxes depending on postback condition jason@cyberpine.com ASP .Net 1 11-05-2003 03:52 PM



Advertisments