Hi Everyone, the design of the form disappear during writing
codes for dataset and data grid. The error show in "line of
assigning dataset". I don't know what's happen. If anyone
know , please share of technical help from someone. Thanks,
Horace Trever

Answer Posted / pavanreddy

first hold the table in clint mechine , if it is select
command use data adapter class other wise command class
ex DataAdapter da= new DataAdapter(" statement");
DataSet ds= new DataSet();
fill the data into dataset
da.fill(ds,"tablename");
now the table come to dataset assign the table to datagrid
dataGridView1.datasource=ds.Tables[0];


if you unable to see the design rightclick select gotodesign

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between ienumerable and enumerable in c#?

542


What is the use of parse in c#?

540


What is difference between string and stringbuilder in c#?

559


What's the difference between the debug class and trace class? Documentation looks the same.

577


How many bytes is a long c#?

551






Describe the overview of clr integration.

565


What is the use of table aliases?

571


How Is The Dll Hell Problem Solved In .net?

670


What does namespace mean?

593


What is string programming language?

509


Define mutex in C#?

725


Can you create sealed abstract class in c#?

561


Define satellite Assembly in .NET?

643


Why do we use namespace in c#?

605


How do I run a cshtml file?

585