public List<string> GetSignsPrinted() { List<string> selectedIds = new List<string>(); DataColumn printedColumn = SourceTable.Columns["Column_PRINT"]; if (printedColumn != null) { foreach (GridViewRow row in this.GridView1.Rows) { CheckBox cbPrint = row.Cells[printedColumn.Ordinal].Controls[0] as CheckBox; if (cbPrint is CheckBox) { if (cbPrint.Checked) { selectedIds.Add(cbPrint.ID); } } } } return selectedIds; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)