User Profile
Collapse
-
thnx plater. i got the logic now. found out that the data table is correct but the datagrid have to contain a validation. we can close this issue now.:D -
Hi. I think i know now the problem. the problem is
it always by pass the if statement dont know why. its strange..
if(myDataTable. Rows[j][i].Equals(System. DBNull.Value))
for example in my excel file i have only 1 null value it will continue to load in my datatable in C#.Leave a comment:
-
Convert.IsDBNull causes exception in C#
Hi All,
Could you help me in my problem in working on a project that imports excel file to a datatable the validation is to catch all null values in the excel file because it will should not allow null values in the data table. Unfortunately my code dud not work. Please see my code below.
[code=c#]
for (int i = 0; i < columnNameInt.L ength -1; i++)
{
try
{
myDataTable.Col umns[columnN...
No activity results to display
Show More
Leave a comment: