How to change default Edit Text Box?

P

Petrucci2000

Hi All, When you put the Edit/Update/Cancel button inside a DG by default
you get Textbox for all the fields. I don't want all the fields to be
updatable, in that case I don't want TBox to appear on those fields. How can
I accomplish this task?


TIA
 
S

Sal Young

You do this by defining each row in the DataGrid's Columns collection, using
the BoundColumn control to assign data fields with each column. Using this
technique gives you complete control over the order of the columns, as well
as their ReadOnly properties. Set the ReadOnly property of the column you
don't want to be editable to true. When a row is in edit mode, this column
will continue to render as a Label. You can see an example of this at

http://www.dotnetjunkies.com/quickstart/aspplus/doc/webdataaccess.aspx
Example DataGrid7.aspx
 

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

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top