By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

Display data differently in a datagrig. Maybe an image?

P: n/a
I have a datagrid on my form that is bound to a dataset. One of the columns is a status field. I'd like to take the plain 1 or 0
returned from the DB and make it either a little exclamation icon in the datagrid (Along with some text) and maybe if it's another
status then I want it to just be some text.

How can I achieve this?
Thanks
Scott
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

You are going to have to make a devived datagrid column style for
that. Here is an article that should get you started.
http://msdn.microsoft.com/library/de...stdatagrid.asp

Ken
---------------------------------------
"Scott Meddows" <sc******************@tsged-removeme.com> wrote in message
news:u1****************@TK2MSFTNGP10.phx.gbl...
I have a datagrid on my form that is bound to a dataset. One of the columns
is a status field. I'd like to take the plain 1 or 0
returned from the DB and make it either a little exclamation icon in the
datagrid (Along with some text) and maybe if it's another
status then I want it to just be some text.

How can I achieve this?
Thanks
Scott

Nov 21 '05 #2

P: n/a
I don't see in there how to add images and text to one of the boxes.

And I just create a class of a column style and have it show up in the style editor somehow? (Instead of just checkbox and textbox)

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message news:eW**************@TK2MSFTNGP12.phx.gbl...
Hi,

You are going to have to make a devived datagrid column style for
that. Here is an article that should get you started.
http://msdn.microsoft.com/library/de...stdatagrid.asp

Ken
---------------------------------------
"Scott Meddows" <sc******************@tsged-removeme.com> wrote in message
news:u1****************@TK2MSFTNGP10.phx.gbl...
I have a datagrid on my form that is bound to a dataset. One of the columns
is a status field. I'd like to take the plain 1 or 0
returned from the DB and make it either a little exclamation icon in the
datagrid (Along with some text) and maybe if it's another
status then I want it to just be some text.

How can I achieve this?
Thanks
Scott

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.