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



Hi Everyone, the design of the form disappear during writing codes for dataset and data grid. The e..

Answer / 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

More C Sharp Interview Questions

What is the solution if you need to manipulate sets of items?

0 Answers  


Why we use anonymous methods in c#?

0 Answers  


What is definition in c#?

0 Answers  


What is the different types of private assembly and shared assembly?

0 Answers  


What are the valid parameter types we can pass in an Indexer ?

3 Answers   CMC,






What is boolean conditions in c#?

0 Answers  


What is the default value of object in c#?

0 Answers  


What is difference between C# and VB.NET?

0 Answers   CDC,


Differentiate between dataset and datareader?

0 Answers  


How do generics work in c#?

0 Answers  


Explain the difference between a struct and a class?

0 Answers  


Explain briefly the difference between value type and reference type?

0 Answers   Accenture,


Categories