I have gridview with apprx. 200 records. In that gridview 1 column is Linkbutton.
When I'm clicking on last few linkbuttons, the page is reloaded and last few records will be hide & linkbutton click event not working.
I'm not using autopostback property in whole gridview & linkbutton.
So,How can link button works in last records, & page is not reloaded ?
Loading
Pradeep ShetPosted Apr 19, 2015, 4:05 PM
Size of gridview is not limited. IT depends on your PageSize whixh is set for gridview, if not set then by default it is 10.
For checking the error run your application in the browser (crome) & press f12 for opening developer tools. Check it in console tab whether any error is there or not.
Pradeep ShetPosted Apr 19, 2015, 4:05 PM
Size of gridview is not limited. IT depends on your PageSize whixh is set for gridview, if not set then by default it is 10.
For checking the error run your application in the browser (crome) & press f12 for opening developer tools. Check it in console tab whether any error is there or not.
Sanket JainPosted Apr 17, 2015, 3:11 AM
CellPadding="4" ForeColor="#333333" GridLines="Both"
DataKeyNames="Application_no" Width="100%"
onselectedindexchanged="gvFRListLCNO_SelectedIndexChanged"
OnRowDataBound="gvFRListLCNO_RowDataBound1"
onrowcreated="gvFRListLCNO_RowCreated" AllowPaging="False"
onpageindexchanged="gvFRListLCNO_PageIndexChanged"
onpageindexchanging="gvFRListLCNO_PageIndexChanging"
onselectedindexchanging="gvFRListLCNO_SelectedIndexChanging"
onrowcommand="gvFRListLCNO_RowCommand" >
<%--OnRowDataBound="gvFRListLCNO_RowDataBound">--%>
<%#Eval("REQUIRED_OPTION") %>
<%# Eval("ENCLOSURE")%>
Code : for binding gridview
private void BindGrid()
{
strSqlQuery = " ";
ds = new DataSet();
da = new OracleDataAdapter(strSqlQuery, cn);
da.Fill(ds, "fin_fundreq");
gvFRListLCNO.DataSource = ds.Tables["final"];
gvFRListLCNO.DataBind();
}
code : Onclick LinkButton
LinkButton btn = (LinkButton)sender;
string CommandName = btn.CommandName;
string CommandArgument = btn.CommandArgument;
//Response.Write(CommandArgument);
Response.Redirect(String.Format("Report.aspx?&Ano={0}", CommandArgument));
Hari KrishnaPosted Apr 17, 2015, 3:01 AM
Can you share your code.
Sanket JainPosted Apr 17, 2015, 2:42 AM
How to find that javascript error ?
Is their any size limit for records in Gridview?
Pradeep ShetPosted Apr 17, 2015, 1:51 AM
I dont think thats an issue, issue is due to something else. Press f12 and check the console tab. I think there is some javascript error or something.