•
•
•
•
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
![]() |
•
•
Join Date: Mar 2008
Posts: 39
Reputation:
Rep Power: 1
Solved Threads: 7
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......
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
•
•
Join Date: Mar 2008
Posts: 34
Reputation:
Rep Power: 1
Solved Threads: 0
•
•
•
•
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...
•
•
Join Date: Mar 2008
Posts: 39
Reputation:
Rep Power: 1
Solved Threads: 7
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...
hope its useful.....
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....
got solution ?, please mark the thread as Solved.
Thanks & Regards,srikanth kadem
srikanthkadem@rediffmail.com
•
•
Join Date: Mar 2008
Posts: 34
Reputation:
Rep Power: 1
Solved Threads: 0
•
•
•
•
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...
hope its useful.....cdr.Checked property..which returns boolean value..if checked it returns true..otherwise false....
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
•
•
Join Date: Mar 2008
Posts: 34
Reputation:
Rep Power: 1
Solved Threads: 0
•
•
•
•
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...
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- need code for updating gridview without using sql datasource (C#)
- Gridview and formview, Gridview not updating immdly. (ASP.NET)
- Problem Updating Row in GridView (ASP.NET)
- GridView hiding cells dynamically (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: screen resolution
- Next Thread: Login page


Linear Mode