TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vijay kumar
NA
22
19k
Datagrid
Mar 25 2014 5:43 AM
SqlConnection con = new SqlConnection("Data Source=(local);Initial Catalog=StudentRegistration;Integrated Security=True");
con.Open();
SqlCommand cmd = new SqlCommand("select * from StudentInfo",con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
dataGridView1.DataSource = ds;
dataGridView1.DataMember = "Student";
why i am getting Object reference not set to an instance of an object in this the code is correct i think.
pls reply guys
Reply
Answers (
6
)
How to Upload and Save to database using Flash player?
Focusing into a control by navigation from other form in c#