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:

I am new to 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.
Updated 7-Apr-11 2:00am
Sandeep Mewara 7-Apr-11 8:28am
Care to share the code?

1 solution

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

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