473,320 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Display data differently in a datagrig. Maybe an image?

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
2 988
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Kevin | last post by:
Hi all, Assuming I have stored the binary data of an image file in a blob field of a table, how can I display it as an image in a web page? I found some instructions on the web, such as ...
3
by: Terry Carroll | last post by:
I've got a small batch image-processing program (it adds the time a digital photo was taken to the lower right of the image), and as a feature, I wanted to show a thumbnail of each image it was...
11
by: Tina | last post by:
I'm in a button clicked event on mainpage.aspx. I want to display a new webpage that has just my image, which is a jpg. I want the page to be a ..jpg not an aspx so that it will be easy for the...
4
by: bep | last post by:
Hello What is the best way to sort an XmlDocument for display in a DataGrig? I can use Xpath with an XpathExpression, and a XpathNavigator. But this XpathNavigator object is of no use to me, I...
5
by: Martin Moser | last post by:
Does somebody knows, if theres a way to display any file (tiff, doc, pdf, .....) "inline" on an asp.net site? What I want to do is, to display a file, which is stored in the DB, and some...
9
by: tshad | last post by:
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo"...
17
by: seajay | last post by:
Hello, I noticed something strange when I was composing a XHTML document with CSS The following DOCTYPE causes the page to display differently on Fireflox 1.0.6 and Internet Explorer 6...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net app, in the page there is a scan activex which could scan and save a jpg file in client harddisk. How could we access and display this jpg file on the fly using js in the client...
9
by: Mel | last post by:
I have some Asp.net 2.0/vb.net code that creates a gantt chart with some dependencies as a new MS Project (.mpp) file. How would I show this resulting .mpp file on an Asp.net webpage? I want to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.