Display data differently in a datagrig. Maybe an image?

  • Thread starter Thread starter Scott Meddows
  • Start date Start date
S

Scott Meddows

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
 
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/d...ry/en-us/dnwinforms/html/wnf_custdatagrid.asp

Ken
---------------------------------------
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
 
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)
 

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

Back
Top