User Profile

Collapse

Profile Sidebar

Collapse
monika varshney
monika varshney
Last Activity: Nov 27 '08, 05:55 AM
Joined: Nov 10 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • monika varshney
    started a topic reading null value in a dataset
    in .NET

    reading null value in a dataset

    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"]);...
    See more | Go to post

  • monika varshney
    started a topic how to fill the datagrid with a table
    in .NET

    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
    ...
    See more | Go to post
    Last edited by kenobewan; Nov 10 '08, 12:02 PM. Reason: Use code tags
No activity results to display
Show More
Working...