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...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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 |
| |||
| 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) { } } |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |