Skip to content

GridView problem

puskar maji

Asked Jan 24, 2009, 1:26 AM EST2 answers
Share
LinkedInX
how to paging automatically in a gridview?what properties should enable? and how to align caption of a gridview binded from code?

plz help

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    Hi,

    Are you working with ASP grridview? If so, set AllowPaging property to true.

    Do you need set header align?

    0
  • 0
    yes i am using asp.net. but setting that property posing paging but when i click 2nd page.giving error.

    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();
    0