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.
Loading
Krishna GaradPosted Jan 24, 2011, 12:39 AM
Lasantha PWPosted Jan 24, 2011, 12:33 AM
Krishna GaradPosted Jan 24, 2011, 12:30 AM
Gridview_PageIndexChanging
{
gridview.PageIndex=e.NewPageIndex;
//Bind Data Here
}