J
John E.
I have a datagrid with one column that is boolean (it is a checkbox column).
So that myDataTable.Column["myColName"]..DataType.UnderlyingSystemType ==
System.Boolean. For printing purposes, I would like to change this from a
boolean to a string, so that I may manipulate the output to read "X" instead
of true, and "" for false. If I attempt to change the DataColumn type
currently, I get an error stating that I cannot change the type of a column
when it has already been populated.
So, how can I convert the column type, with data in it, from boolean to
string, so that I can change all "true" to "X" and all "false" to ""?
Oh, and this is a windows application, not asp.net...if it matters in this
case.
TIA
-John E.
So that myDataTable.Column["myColName"]..DataType.UnderlyingSystemType ==
System.Boolean. For printing purposes, I would like to change this from a
boolean to a string, so that I may manipulate the output to read "X" instead
of true, and "" for false. If I attempt to change the DataColumn type
currently, I get an error stating that I cannot change the type of a column
when it has already been populated.
So, how can I convert the column type, with data in it, from boolean to
string, so that I can change all "true" to "X" and all "false" to ""?
Oh, and this is a windows application, not asp.net...if it matters in this
case.
TIA
-John E.