Lasantha PW

Lasantha PW

  • NA
  • 213
  • 214.9k

Gridview Paging and row count

Jan 24 2011 12:28 AM

hi all,
In page load i bound a gridview from this
private void bindTransaction(string code)
{
var transinfo = from transaction in manager.BenTransactions select transaction;
transactiongrid.DataSource = transinfo;
transactiongrid.DataBind();
}
then i want to retrive all griddata.i set the pagesize as 10 and allow paging to true.when i try to get all records it give only 10(current page records)
protected
void generatebtn_Click(object sender, EventArgs e)
{
generate(transactiongrid);
}

can anyone tell me how solve this issue. i'm using linq.

Answers (3)