I am trying to check the value of the checkbox in a ItemTemplate in the GridTemplateColumn. If you notice on line 3, this is what I'm attempting to accomplish. I know it cannot be done this way, but how might I be able to do it.
| if (col.UniqueName == "SelectedLineItems") |
| { |
| if (dataItem[col.UniqueName].Checked) |
| { |
| if (col.UniqueName == "colCatalogNumber") |
| { |
| if (dataItem[col.UniqueName].Text == this.txtFindColor.Text) |
| dataItem[col.UniqueName].Text = this.txtReplaceColor.Text; |
| { |
| if (dataItem[col.UniqueName].Text == this.txtReplaceColor.Text) |
| dataItem[col.UniqueName].ForeColor = System.Drawing.Color.Crimson; |
| } |
| } |
| } |
| } |