473,509 Members | 6,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Prining Hex in a Grid Control

Hi All -

I have a dataset that has a combination of string data and byte data that I
want to print out in a grid.

Everything works fine in terms of retrieving the dataset but I cant figure
out how to print the darn thing out. I keep getting "System.Byte[]" in the
columns that have Byte data. The Grid control allows a Data Formatting
Expression but nothing I try seems to work.

My output grid looks (something) like this:

SERIAL_NUMBER TYPE PROGRAM_DATE
------------------------------------------

123456 System.Byte[] System.Byte[]

678901 System.Byte[] System.Byte[]

949349 System.Byte[] System.Byte[]
I have tried {0:2X} and {0:4x} for the formatting expression in the TYPE and
PROGRAM_DATE columns but nothing seems to work. I have tried lots of other
combinations too, but it keeps printing out "System.Byte[]"

I want to print out the bytes in Hex format like "0x1F" or maybe "0x1F2B"

Is there a way to do this with the Formatting Expression?

Thanks,

Paul Hastings
Jul 21 '05 #1
0 1409

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
21521
by: Faiz | last post by:
Dear Experts, We are currently using True DB Grid 7.0 with VB6 on Windows 2000 platform. Our objective is to display Excel like formatted data (in rows and columns), allow users to perform...
3
1884
by: SAM | last post by:
Hey guys, Long time Access programmer, but never had to bother with these things until now. First, I use ADO all the time in VB, but now I need to use it in Access 2K. I never remember/know...
1
2274
by: john menke | last post by:
I am new to .Net and have a requirements for a project that we zoom a grid control when it's clicked. This grid will contain a yellow pages like listing and be displayed on a form with other grids...
4
3261
by: blackhawk | last post by:
I need to build a web page that has to potentially display a large amount of data in two grids on the same page. The HTML file with all of the formatting is about 7MB in size. This is too large...
3
4921
by: Ray Lavelle | last post by:
I'm upgrading my application to .Net and need a grid control replacement for my old one. I was using the Farpoint control, which I really like but the new version for .Net is fairly expensive. I...
1
1566
by: Rob Richardson | last post by:
Greetings! I see from the group archives that a lot of people don't like how Snap to Grid works when placing controls on forms. I am now among that number. When I had the Windows Forms Designer...
2
1845
by: Tom | last post by:
I need to display a series of controls (in my case, a custom control) in a grid-like fashion. This means this particular control would be repeated multiple times, arranged in a row/column format....
0
1482
by: Workgroups | last post by:
Not sure the best way to go about making this: I have 3 user defineable values - Width, Height, and Size. These values need to define a "grid" of some kind in the following manner: The Width is...
0
295
by: Paul Hastings | last post by:
Hi All - I have a dataset that has a combination of string data and byte data that I want to print out in a grid. Everything works fine in terms of retrieving the dataset but I cant figure...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.