User Profile

Collapse

Profile Sidebar

Collapse
RICALJE
RICALJE
Last Activity: Oct 7 '08, 02:51 AM
Joined: Aug 6 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • RICALJE
    replied to Convert.IsDBNull causes exception in C#
    in .NET
    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
    See more | Go to post

    Leave a comment:


  • RICALJE
    replied to Convert.IsDBNull causes exception in C#
    in .NET
    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#.
    See more | Go to post

    Leave a comment:


  • RICALJE
    started a topic Convert.IsDBNull causes exception in C#
    in .NET

    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...
    See more | Go to post
No activity results to display
Show More
Working...