471,071 Members | 1,508 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

Dropdown in gridview on onSelectedIndexChanged

Hi all,

I have a gridview, when onselectedindexchanged in fired. i want to convert the selected row's column's into dropdown so that user can select the new value and update it.

please tell me how can i do that?

Jan 22 '09 #1
4 3687
9,735 Expert Mod 8TB
It sounds like you're interested in looking into using a TemplateField. It will let you specify how your data appears when a user is editing a row.

Jan 23 '09 #2
Tnx a Lot. actually i had a wrong understanding of what i wanted to do.... but also i dont wanted to have a edit button in my grid what i wanted is when a user will select a row(he can click anywhere on the row) a onselectedindexchanged will be fired. and a drop down will apear in the row. user will select a nea value from the drop down and again onindexchanged will be fired and value will be updated and gropdown will go away.
Jan 23 '09 #3
A little extension to the standard asp.net gridview can achieve the goal of single click and double click events in gridview. One post that helps is Asp.net custom gridview with single click and double click row events

Hope this helps.
Jan 30 '09 #4
thanks a lot its really helpfull
Jan 30 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by RS | last post: by
reply views Thread by trint | last post: by
reply views Thread by Andrus | last post: by
5 posts views Thread by =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.