datagrid bool to string

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
 
R

RobinS

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top