I have a gridview. One of my dataRow fields holds either an "H" or a "D" value to indicate "Hours" or "Days". I want to display "Hours" or "Days" in the header based on the dataRow field value.
Is there a way to determine the value of the dataRow field when the gridview is processing the Header row?
if (e.Row.RowType == DataControlRowType.Header)
if (e.Row.Cells.Text.Contains("H")) This is the datarow field value I'm trying to access (this doesn't work)