PC Review


Reply
Thread Tools Rate Thread

Display data differently in a datagrig. Maybe an image?

 
 
Scott Meddows
Guest
Posts: n/a
 
      23rd Aug 2004
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


 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      24th Aug 2004
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" <(E-Mail Removed)> wrote in message
news:u1aH%(E-Mail Removed)...
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



 
Reply With Quote
 
Scott Meddows
Guest
Posts: n/a
 
      24th Aug 2004
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]" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:u1aH%(E-Mail Removed)...
> 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
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prints differently than the display MirandaD Microsoft Excel Misc 0 1st Jul 2009 12:03 AM
Display data differently in a combobox to it's table s4 Microsoft Access 2 20th Mar 2008 04:31 PM
Contacts Display Differently =?Utf-8?B?VEpBQw==?= Microsoft Outlook Contacts 9 19th Feb 2007 06:53 PM
Excel buttons display differently on different PC's PaulFCPS Microsoft Excel Programming 3 27th Feb 2006 04:38 PM
Display negative data points differently. =?Utf-8?B?TVJO?= Microsoft Excel Charting 1 19th Dec 2004 10:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:25 PM.