PC Review


Reply
Thread Tools Rate Thread

DESPERATE - dataGrid with binary values

 
 
zw
Guest
Posts: n/a
 
      26th Apr 2007
Hi

I have problems displaying binary values on cells on the GUI.
The program crashed with following dialog box:

"The following exception occurred in the DataGridView:
System.ArgumentException: Parameter is not valid
at System.Drawing.Image.FromStream(...
at System.Drawing.ImageConverter.ConvertFrom(...
at System.Windows.Forms.Formatter.FormatObjectInternal(...
at System.Windows.Forms.Formatter.FormatObject(...
at System.Windows.Forms.DataGridViewCell.GetFormattedValue(...

To replace the default dialog please handle the DataError event."



source code
==========
:
:

string query = "SELECT * FROM icc.provisioning";

//Retreive the table that holds user profile information
DataSet ds = new DataSet("Provisioning");
adapter.Fill(ds, rs, "Provisioning");
adapter.TableMappings.Add("Table", "Provisioning");
dataGridView1.DataSource =
ds.Tables["Provisioning"].DefaultView;

:
:


TimesTen database data
===================
Command> describe icc.provisioning;

Table ICC.PROVISIONING:
Columns:
* BU VARCHAR (30) INLINE NOT NULL
KI BINARY (32)
TIMESTM BINARY (8)

1 table found.
(primary key columns are indicated with *)



Command> select * from icc.provisioning;
< iden,
0000000000000000000000000000000000000000000000000000000000000000,
4625F296000625D1 >


How do I overcome this to display binary values in datagrid ?
Are there excellent books for programming Windows Forms and database ?
I'm a novice programmer.

Any help is appreciated.

 
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
Desperate! Look up values =?Utf-8?B?RXJpbiBGcmVlbWFu?= Microsoft Access Database Table Design 6 14th Dec 2007 08:09 AM
DESPERATE - dataGrid with binary values zw Microsoft Dot NET Framework Forms 0 26th Apr 2007 07:23 PM
DESPERATE - dataGrid with binary values zw Microsoft C# .NET 0 26th Apr 2007 07:17 PM
Desperate - Gridview each row different from DataGrid - why not works? K B Microsoft ASP .NET 2 23rd May 2006 08:25 PM
Binary file datagrid =?Utf-8?B?TWFyaWU=?= Microsoft C# .NET 1 5th Apr 2004 02:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:42 AM.