Home All Groups Group Topic Archive Search About

creating image column on the fly based on another column's varchar values.

Author
11 Feb 2006 2:31 AM
hazz
In a datagridview databinding scenario, I would like to replace a
datagridview column's text values with an icon for a better user experience.
The problem is that if I select the column value from my table of datatype
varchar, that datagridview column value cannot be changed from a textbox
cell value to an image cell value after that 'datasource' is bound to the
grid. I would like to create an image column in a select statement and
databind that. Is there a way to dynamically create an image column
dynamically that would have 3 distinct image values?.....the question sounds
absurd..I guess I have to create a permanent column with the appropriate
image in it before I write the select for that table.    -hazz

Author
11 Feb 2006 5:15 AM
hazz
Don't waste your time reading this. I revised my idea and reposted -hazz

Show quote
"hazz" <h***@sonic.net> wrote in message
news:elvptLrLGHA.3960@TK2MSFTNGP09.phx.gbl...
> In a datagridview databinding scenario, I would like to replace a
> datagridview column's text values with an icon for a better user
> experience. The problem is that if I select the column value from my table
> of datatype varchar, that datagridview column value cannot be changed from
> a textbox cell value to an image cell value after that 'datasource' is
> bound to the grid. I would like to create an image column in a select
> statement and databind that. Is there a way to dynamically create an image
> column dynamically that would have 3 distinct image values?.....the
> question sounds absurd..I guess I have to create a permanent column with
> the appropriate image in it before I write the select for that
> le.    -hazz
>

AddThis Social Bookmark Button