Question radiobuttonlist losing state on rowedit

dotnetcoder08

New member
Joined
Sep 4, 2008
Messages
1
Programming Experience
5-10
I have a radiobutton list in a gridview. On selected index change, I place the row in edit mode. The problem is that when the row goes into edit mode, I lose the selected value of the radio button. Any idea what could cause this?
 

Attachments

  • asp.txt
    3.6 KB · Views: 24
  • code.txt
    1.9 KB · Views: 22
Maybe i dont understand what you are trying to do. From my understanding you are trying to allow the user to select a row but then push the grid into edit mode? Why dont you just have an edit button? Then you can create the 'editing' method and I believe that will keep your radiobuttonlist intact.

meaning:
on the gridview allow the row to be edited by setting AutoGenerateEditButton to true.

Then in code create the Gridview->RowEditing method. From here you access the radiobuttonlist.

If that doesnt work I think you may have to re work your logic. Might have to make it so you cannot change the radiobuttonlist's selected item untill you are in edit mode.
 

Latest posts

Back
Top