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.