IT Community - Software Programming, Web Development and Technical Support

How to change the checkBox properties, which is inside nested Repeater/Grid

This is a discussion on How to change the checkBox properties, which is inside nested Repeater/Grid within the C# Programming forums, part of the Software Development category; How to change the checkBox properties, which is inside nested Repeater/Grid...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-24-2007, 12:00 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Question How to change the checkBox properties, which is inside nested Repeater/Grid

How to change the checkBox properties, which is inside nested Repeater/Grid
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-03-2007, 11:53 PM
smani smani is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 56
smani is on a distinguished road
Default Re: How to change the checkBox properties, which is inside nested Repeater/Grid

hi,
you can try this,

foreach (GridViewRow i in elementGridView.Rows)
{
Repeater personalityQuestionRepeater = (Repeater)i.FindControl("RepeaterName");

if (RepeaterName != null)
{

foreach (RepeaterItem j in RepeaterName.Items)
{
CheckBox check = (CheckBox)j.FindControl("box");
if (check != null)
{
if (check.Checked == true)
{
checkbXHiddenField.Value = "Set value";
}
}
}
}
}

Regards
Manivannan
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-10-2007, 12:28 AM
rrrajesh84in rrrajesh84in is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 399
rrrajesh84in is on a distinguished road
Default Re: How to change the checkBox properties, which is inside nested Repeater/Grid

hi

protected void deleteAllArchiveLinkButton_Click(object sender, EventArgs e)
{
CheckBox deleteArchiveCheckBox;
try
{
foreach (GridViewRow j in archiveGridView.Rows)
{
deleteArchiveCheckBox = (System.Web.UI.WebControls.CheckBox)j.FindControl( "deleteArchiveCheckBox");
if ((((System.Web.UI.WebControls.CheckBox)j.FindContr ol("deleteArchiveCheckBox")).Enabled) == true)
{

(((System.Web.UI.WebControls.CheckBox)j.FindContro l("deleteArchiveCheckBox")).Enabled) = false;
}
else
{
(((System.Web.UI.WebControls.CheckBox)j.FindContro l("deleteArchiveCheckBox")).Enabled) = true;
}
}

}
catch (Exception ex)
{

}
}
__________________
.....................................
''''''
Rajesh''''''
Ants. . . . . . Like me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
C have nested functions vigneshgets C and C++ Programming 1 09-21-2007 03:30 AM
nested functions in C? prasath C and C++ Programming 2 08-29-2007 03:45 AM
How to change the row color of the Repeater based on some condition? kingmaker ASP and ASP.NET Programming 1 07-26-2007 01:03 AM
How to change the row color of the Repeater based on some condition? kingmaker ASP and ASP.NET Programming 1 07-24-2007 12:01 AM
How to bind data in repeater when i use two repeater's in nested format? kingmaker ASP and ASP.NET Programming 1 07-20-2007 03:28 AM


All times are GMT -7. The time now is 09:00 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0