Gridview Paging and row count
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.