how to paging automatically in a gridview?what properties should enable? and how to align caption of a gridview binded from code?
plz help
GridView problem
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Sylwester16 pointsPosted Jan 26, 2009, 1:35 AM EST
Hi,
Are you working with ASP grridview? If so, set AllowPaging property to true.
Do you need set header align?
puskar maji11 pointsPosted Jan 26, 2009, 7:11 PM EST
i want to set column header such as id,name,address instead of gridview header.
EX:
SqlDataAdapter da = new SqlDataAdapter("select rid,name,address from emp", con);
da.Fill(ds, "emp");
GridView1.DataSource = ds;
GridView1.DataBind();