J
Jay Balapa
Hello,
This is a compactframework windows app.
Iam trying read from a DataRow.
myTextBox.Text=myDataRow("MyColumn")
If there is a value for the myDataRow("MyColumn") then the statement
executes. But if the column is empty I get invalidCastException, When
casting from number etc..
I have tried CTYPE() or even check for "Is Nothing", just accesing the
column gives me the exception.
How can I prevent the exception from occuring. Underlying DataField is
nvarchar(250) from SQLCE databse.
Thanks
jay
This is a compactframework windows app.
Iam trying read from a DataRow.
myTextBox.Text=myDataRow("MyColumn")
If there is a value for the myDataRow("MyColumn") then the statement
executes. But if the column is empty I get invalidCastException, When
casting from number etc..
I have tried CTYPE() or even check for "Is Nothing", just accesing the
column gives me the exception.
How can I prevent the exception from occuring. Underlying DataField is
nvarchar(250) from SQLCE databse.
Thanks
jay