Visual Basic .NET Forums    

Go Back   Visual Basic .NET Forums > Components & Controls > Grids > Web Grids

VB.NET Forums Newsletter Signup:
Email address:


Web Grids Discussion related to any grid for ASP.NET

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-04-2008, 2:39 PM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Sep 2008
Age: 39
Posts: 1
Reputation: 0
dotnetcoder08 is on a distinguished programming path ahead
Default radiobuttonlist losing state on rowedit

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?
Attached Files
File Type: txt asp.txt (3.6 KB, 0 views)
File Type: txt code.txt (1.9 KB, 0 views)
Reply With Quote
  #2 (permalink)  
Old 09-04-2008, 5:54 PM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Aug 2008
Posts: 8
Reputation: 0
rcombs4 is on a distinguished programming path ahead
Default

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.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 3:18 PM.




Click to advertise here

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
For advertising opportunities click here.