how to add checkbox column to gridview
问题 How to add checkbox column to gridview . i've tried: foreach (GridViewRow objRow in GridView1.Rows) { TableCell tcCheckCell = new TableCell(); CheckBox chkCheckBox = new CheckBox(); tcCheckCell.Controls.Add(chkCheckBox); objRow.Cells.Add( tcCheckCell); } How can i add the objrow to gridview? Or is there any other method of adding a checkbox column to an ASP.net GridView ? 回答1: The problem is that you cannot add a CheckBox field to a GridView in order to have a column of checkboxes - the