ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ADO.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
how to display empty table to datagrid
 Question Submitted By :: Om Namo Bhagavathe Vasudevaya
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to display empty table to datagrid
Answer
# 1
DataTable tbl=new DataTable;
DataColumn ID=new
Datacolumn("ID",System.Type.GetType("System.Int"));
DataColumn Name=new
DataColumn("NAME",System.Type.GetType("System.String"));
tbl.Columns.add("ID");
tbl.Columns.Add("NAME");
Datarow dr =null;;
for (int i=0;i<100;i++)
{
dr=tbl.NewRow();
}
datagridview1.datasource=tbl;
 
Is This Answer Correct ?    9 Yes 0 No
Dinesh Sharma
 

 
 
 
Other ADO.NET Interview Questions
 
  Question Asked @ Answers
 
What is the main difference between ADO and ADO.Net  3
how to add a selected row of a gridview to another gridview without reloading the page??  1
Execute nonquery returns no. of afected rows.So if my stored procedure hav lot of select stmnt, delete stmnt, insert stmnt..then what does execute nonquery returns in this case?  1
What is a datatable? SBI8
Explain what a diffgram is and its usage ?  1
What is @@rowcount and with small code snippet explain the usage? BirlaSoft4
What are the attirbutes of DataSet? IBM5
Which method do you invoke on the DataAdapter control to load your generated dataset with data?  3
what is bubbled event can u pls explain Wipro3
What is reference by value how does it works in .net? SQL-Star2
What does ADO.NET consists of ? TCS5
what is data access layer? Honeywell2
ADO and ADO.NET differences? Microsoft3
what is sql Injection? Microsoft4
Difference between ADO and ADO.Net IBM4
Being fresher How would i answer to the question that what is your salary exception?  3
How to you declare connection strings and how to you make use of web.config ? MMTS2
What providers does ado.net uses internally ? Digital-GlobalSoft2
If a table contains 20000 records . In a page at each time 100 records to be displayed. What are the steps u will take to improve performance? will you use dataset or datareader?  6
How to add Primary key in DataSet  5
 
For more ADO.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com