Define two important properties and methods and events of datagrid?

 Posted by Rajni.Shekhar on 6/29/2012 | Category: ASP.NET Interview questions | Views: 3207 | Points: 40
Answer:

DataSource is the property of datagrid to give source name like dataset or datatable.
and DataBind is the method to bind datagrid.

Example:

gridview.DataSource = ds; //ds is the dataset and filled with some data.

gridview.DataBind();


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response