I have to read a database using dataset. My database has some null values.
My code is working fine when there is a value in the database. But when there is a null value in the database, dataset throws an exception.
I have to read null value in a variable. I have tried this....
if (dr["value"] != DBNull.Value)
{
abc = Convert.ToDoubl e(dr["value"]);...
User Profile
Collapse
-
reading null value in a dataset
-
how to fill the datagrid with a table
I have a sql server table and i want to read it in the datagrid view of C# .Net.
I think it is easy to do it. but i m not able to show any output in the datagrid...
here is my code.please guide me.where i m wrong..
Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using
No activity results to display
Show More