Gridview get Checkbox.Checked value

后端 未结 7 647
北荒
北荒 2020-12-17 10:23

I have a GridView that has 10 columns populated by CheckBoxes. But instead of using FindControl() is there a way to get the CheckBox.Checked value

相关标签:
7条回答
  • 2020-12-17 11:09
         foreach (DataRow row in DataRow row in GridView1.Rows)
            {
                foreach (DataColumn c in GridView1.Columns)
    
                   bool ckbVal = (bool)(row[c.ColumnName]);
    
            }
    
    0 讨论(0)
提交回复
热议问题