datagrid bool to string

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

I'm using a gridview on a webpage. I am passing in several different
datatables, depending on the desired information. I have some values that
are bool in the database.
The problem is when the gridview is displayed, I get a checkbox in the
gridview. (I am autogenerating the columns,) But I want to display the
value(True or False).
Is there someway to change this on the fly, someting like:
this.GridView1.Columns["ColumnName"].ItemStyle.??? tostring

thanks
Jeff
 
I don't think so. I think you have to either pull your data as a string
(convert it in the query), or turn off autogeneration of the columns and
create them yourself.

RobinS.
GoldMail, Inc.
 
Back
Top