You can display data in a gridview automatically by binding to a data source using the DataSourceID property. You can also bind using the DataSource property in which you will be binding to ADO.NET objects like datatable or datasets . Because you do this in code , this is more of a manual process.
By using gridview1.datasource=ds.tables(0)here gridview1 is the object of gridview control