I have one datagridview and three column roll no,name,present/Absent is Checkbox other is textbox.
I want to Click on Show Class wise all sudent name fetch but can not show by default checkbox checked.
vb.net windows form
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nilesh ShahRank #42 · 34.2K reputationPosted Mar 1, 2017, 10:54 AM EST
Jitendra ShekhawatRank #1,909 · 772 reputationPosted Mar 2, 2017, 6:29 PM EST
To set CheckBox:
CheckBoxName.SetCurrentValue(CheckBox.IsCheckedProperty, true);To unset CheckBox:
CheckBoxName.SetCurrentValue(CheckBox.IsCheckedProperty, false);Jitendra ShekhawatRank #1,909 · 772 reputationPosted Mar 2, 2017, 6:30 PM EST
protected void Page_Load(object sender, EventArgs e){ for (int i = 0; i { CheckBoxList.Items[i].Selected = true;} }