I have a grid it has to display some 100 rows from a table. I do not want to set any paging or sorting. How to display the grid with out any page size?
If I do not specify any page size then by default it takes ten and after ten if I add any row it throws an error.
UPDATE
Removed allow paging.
This is the exact error.
Microsoft JScript runtime error:
Sys.WebForms.PageRequestManagerServerErrorException:
The GridView 'gvEventMechanic' fired event PageIndexChanging which wasn't
handled
I have a add button down the grid which will add an empty row to the grid. If no page size is given it automaticaly uses 10 as default and while entering 11 items it gives me an option for > >>. If I click on >> I get the above error.
This is the code for my add button:
DataRow drCurrentRow = null;
drCurrentRow = _dsMechanic.Tables[0].NewRow();
drCurrentRow["Id"] = 0;
drCurrentRow["Description"] = string.Empty;
//Adds new row to the existing row
drCurrentRow["Passive"] = 0;
//Bind the new row with grid
_dsMechanic.Tables[0].Rows.Add(drCurrentRow);
gvEventMechanic.DataSource = _dsMechanic.Tables[0];
gvEventMechanic.DataBind();
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)