Click here to Skip to main content
15,065,044 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I am new to ASP.net and using Grid view to save the data in the data base. Now my problem is that once I save the row, the elements of the row is still editable. How to remove this problem?

I am using 2 DropDownList and 3 textboxes in the grid view.

Thanks for help.

Edit: Removed underlines, bold characters etc. Tried making subject descriptive.
Posted
Updated 7-Apr-11 2:00am
v3
Comments
Sandeep Mewara 7-Apr-11 8:28am
   
Care to share the code?

1 solution

on GridView1_RowUpdating
event
change the editindex
like GridView1.EditIndex = 0;
disble your dropdown
and call bind method/ bind your gridview agin.
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900