Edit Datagrid - show textbox and dropdown

A

Anamika

Hi All,
I have a problem trying to edit the data in a datagrid control.
I have 2 bound columns in the datagrid. I have added the following
code inorder to edit the data. I want it such that certain rows of
data when edited will bring the textbox control while certain other
rows will bring a dropdownlist from where i can select a value.

is it possible to do that in the SAME template column?
Any help will be much appreciated.

Thanks,
Anamika

----
<Columns>
<asp:EditCommandColumn
ButtonType="LinkButton"
UpdateText="Update"
CancelText="Cancel"
EditText="Edit"
ItemStyle-HorizontalAlign="Center"
HeaderText="Edit">
</asp:EditCommandColumn>
<asp:BoundColumn DataField="Header" HeaderText="Application
Field"></asp:BoundColumn>
<asp:BoundColumn DataField="Value" HeaderText="Field
Value"></asp:BoundColumn>
</Columns>
 
A

Anamika

Hi Scott,
Thanks for the response. I went through your site before posting here.
I'll try toggling the controls during runtime like you suggested.

Thanks,
Anamika
 

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,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top