User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 425,820 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,004 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1203 | Replies: 15 | Solved
Reply
Join Date: Mar 2008
Posts: 34
Reputation: priyamsc is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
priyamsc priyamsc is offline Offline
Light Poster

Re: problem in updating the gridview

  #11  
Jun 4th, 2008
hi sir,
Hve u found the ans
if so pls inform me as soon as possible.
thanking you,
Reply With Quote  
Join Date: Mar 2008
Posts: 39
Reputation: srikanthkadem is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 7
srikanthkadem srikanthkadem is offline Offline
Light Poster

Re: problem in updating the gridview

  #12  
Jun 5th, 2008
hey,
everything is fine.in that code....in edit mode did u get the checkboxes in interface...did u write ur code in rowupdating event only..did u declare cdr as checkbox object globally...?check these things......
got solution ?, please mark the thread as Solved. Thanks & Regards,
srikanth kadem
srikanthkadem@rediffmail.com
Reply With Quote  
Join Date: Mar 2008
Posts: 34
Reputation: priyamsc is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
priyamsc priyamsc is offline Offline
Light Poster

Re: problem in updating the gridview

  #13  
Jun 5th, 2008
Originally Posted by srikanthkadem View Post
hey,
everything is fine.in that code....in edit mode did u get the checkboxes in interface...did u write ur code in rowupdating event only..did u declare cdr as checkbox object globally...?check these things......


ya i hav writen al as u mentioned.the problem is
cdrw = (CheckBox)GridView1.FindControl("chk_cdrw");
here the check box chk_cdrw value doesnt set for the varibale cdrw.. it shows null value when i trace the codings
and how to get the checkbox value bec it doesnt know how to get value whether the check box is checked or not
so if u knw just infrm me

Thank you so much for helping til now...
Reply With Quote  
Join Date: Mar 2008
Posts: 39
Reputation: srikanthkadem is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 7
srikanthkadem srikanthkadem is offline Offline
Light Poster

Re: problem in updating the gridview

  #14  
Jun 5th, 2008
hey priya,
first dont say sir.
second to get checkbox value first u need to get the checkbox reference that ur not getting.(u r getting null there).ones u have reference to that control ..then u can check the value simply by...
cdr.Checked property..which returns boolean value..if checked it returns true..otherwise false.... 
hope its useful.....
got solution ?, please mark the thread as Solved. Thanks & Regards,
srikanth kadem
srikanthkadem@rediffmail.com
Reply With Quote  
Join Date: Mar 2008
Posts: 34
Reputation: priyamsc is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
priyamsc priyamsc is offline Offline
Light Poster

Re: problem in updating the gridview

  #15  
Jun 5th, 2008
Originally Posted by srikanthkadem View Post
hey priya,
first dont say sir.
second to get checkbox value first u need to get the checkbox reference that ur not getting.(u r getting null there).ones u have reference to that control ..then u can check the value simply by...
cdr.Checked property..which returns boolean value..if checked it returns true..otherwise false.... 
hope its useful.....


cdr = new CheckBox();
cdr = ((CheckBox)GridView1.FindControl("chk_cdr"));

hey like that is wat i created the refre for cdr. i do no whet its right so can u help me how to create
Reply With Quote  
Join Date: Mar 2008
Posts: 34
Reputation: priyamsc is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
priyamsc priyamsc is offline Offline
Light Poster

Re: problem in updating the gridview

  #16  
Jun 5th, 2008
Originally Posted by priyamsc View Post
cdr = new CheckBox();
cdr = ((CheckBox)GridView1.FindControl("chk_cdr"));

hey like that is wat i created the refre for cdr. i do no whet its right so can u help me how to create

I got the answer properly.its updating nicely. thanks a lot
but when i edit the gridview , if the colum has yes value then the check box shud be cheked ...how to do tat...
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 4:14 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC