Saturday, 24 August 2013

Display Dataset in gridview ( C# console application)

Display Dataset in gridview ( C# console application)

I have a DataSet in my .net client side which I want to display in
GridView. I know the syntax but I can not display it. Would you please let
me know my mistake?
System.Windows.Forms.DataGridView myGrid = new DataGridView();
myGrid.DataSource = xmlResponse.Tables[0];
I know that in this step I should bind my DataSet as:
myGrid.DataBind();
but I can not find this attribute in C# ! All I have is DataBindings and
DataBindingCompelete. Any help would be appreciated.

No comments:

Post a Comment