EditItemTemplate

G

Greg

I have a managed to get the OnEditCommand to run on my datagrid but
ALL the columns become editable. I dont want this. Is it possible for
only one column to become editable?

I know this can be done with the DataList using template columns but I
need Sorting and Paging enabled so that is why Im using a datagrid.

Thanks
 
J

Jos

Greg said:
I have a managed to get the OnEditCommand to run on my datagrid but
ALL the columns become editable. I dont want this. Is it possible for
only one column to become editable?

I know this can be done with the DataList using template columns but I
need Sorting and Paging enabled so that is why Im using a datagrid.

Thanks

Use BoundColumns in your datagrid, and set their Readonly attribute to
True, except for the one that you want to edit.
 
P

Prodip Saha

You can use <asp:Label.........../> instead of <asp:TextBox...../> in the
EditItem template.
Prodip Saha
 

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
474,141
Messages
2,570,813
Members
47,357
Latest member
sitele8746

Latest Threads

Top