Gridview Binding from database using c#




asp.net using c#,net Gridview code
data display in table format for used gridview

gridview code:::

sqldataadapter da=new  sqldataadaper("select * from table name");
dataset ds= new dataset();
da.fill(da,"tablename");
gridview1.datasourse=da.tables["tablename"];
gridview1.databind();