Gridview Edit Mode Times out on large table

I have a table that has 155 lines (not really big in the grand scheme of things), but when I put it into Edit mode, or rather try to, using a TemplateField it basically times out on me. Using WebDev.Webserver is actually crashes the process. On smaller tables it doesn't do this and I haven't figured out how large it has to get before it starts doing it. I tried implementing paging thinking that would fix it, but it still does it. has anyone ran into that before? If so what have I done wrong? Thanks in advance!

0
Janus1313
5/4/2009 10:07:12 PM
asp.net.presentation-controls 72751 articles. 3 followers. Follow

2 Replies
1003 Views

Similar Articles

[PageSpeed] 26

I'm fairly certain the 155 lines is not the problem.  GridViews should be able to handle that quite easily.  I just tested a simple gridview which displayed 5000 rows easily, albeit with only one int column.  Maybe post some of the relevant code...


C# <---> VB.Net Translator
0
MetalAsp
5/5/2009 2:45:46 AM

 Hi friend,

    Gridview can handle 5000 rows . While data binding to the gridview you can see the data according to the paging. For every paging click we need to bind 5000 rows  and see the 10 to 15 rows depending on the paging. It decreases your application performance issue. The best way is Implmenting manual paging.
That means you will get 15 records from the table and then bind to the grid. It will increases your application performance.
 


Thanks,
R.charan kumar

Please mark the most helpful reply/replies as "Answer".
0
charan2021
5/5/2009 3:29:21 AM
Reply:

Similar Artilces:

GridView and Javascript
Hey All, I need help from  you. I have a GridView. In the  Edit Item template of the first Column I have a textbox, an user control and hidden field. When I click on the user control it  opens a pop up from which I can choose the required value. The text value is populated in the textbox and Id in the hidden field. Here's the code for edit template.         <EditItemTemplate>                        <table cellpaddin...

Handling control events while in edit mode for a gridview control
I have a dropdownlist and checkbox in a single column of a gridview. While the row is in edit mode, I want to set the visibility of the checkbox based on the value selected in the dropdown list. I can do this easily enough  when the row is first put into edit mode, but how do I access the dropdown list's change event when the row is already sitting there in edit mode? Thanks for any help you can provide.   Penny Penny, Just create a SelectedIndexChanged event like below. Create a row object for the currently edited row, find the checkbox you want to control, then set the Visib...

Add new controls to a gridview row; when editing that row using the edit row feature in the gridview control.
Hi all  I have a questions that looks hard / complex to me, and i know you can help me in this. Q {  I have row in a Gridview and i have an edit option to it. I press the edit button, to edit the values in that row and update data all the way back to the database. Now when i press the edit button, i want a drop down list to be displayed that contain values for a particular field in my grid view. (for now only plain text boxes appear.) } I hope you understand my question, all i need to do is replace the text box controls with a dropdown list when i am editing a row in ...

GridView control enters edit mode only when I click Edit link twice
Hi all..I have a GridView control in an ASP.NET 2.0 page. I added a column that contains edit, update, cancel buttons. Because I did that, I had to handle RowEditing event or an exception was thrown.Well... this is the body of the RowEditing event:protected void gvParametros_RowEditing(object sender, GridViewEditEventArgs e){      gvParametros.EditIndex = e.NewEditIndex;}The fact is that when page is loaded and I click the edit link, page is refreshed but GridView doesn't enter edit mode. When I press edit link again, GridView enters edit mode.Any help to solve this behavior w...

Gridview Edit go to new page and enter Edit mode on a formview control.
Okay, so far I have the edit button go to a page called update.aspx. And have the ID selected. However, I don't want it to be in selected view, I want it to go to the update.aspx page in edit mode not selected mode. Is this possible? You can add one hyperlink and set its path to update.aspx?Id=(selectedId)on update.aspx read Id's value from querystring and do updation - Hardik (Software Developer,Surat,India)Please remember to click "Mark as Answer" on this post if it helped you. You lost me at the "do updation part" so far I have a the EDIT link go to ...

using javascript getting value from textbox when edit button is clicked and both controls are present in gridview control
Hi All using javascript I want to get value  from textbox when edit button is clicked and both controls that is texbox and button are present in gridview control .Alok Hi aloksinha83, Please see this post: http://forums.asp.net/t/1069245.aspx Thanks,Qin Dian TangMicrosoft Online Community SupportPlease remember to mark the replies as answers if they help and unmark them if they provide no help....

populating gridview controls in edit mode
I know how to populate a dropdown list in a gridview in edit mode when the dropdown is populated by a datasource (see below eg 1), but how do you populate the dropdown when the dropdown is populated in the ASP.NET (ie you are adding asp:ListItems in the ASP see eg 2) rather than by a datasource? Eg 1: <asp:TemplateField HeaderText="Forecast Type" SortExpression="ForecastDescription"> <ItemTemplate> <asp:Label ID="lblForecastType" Text='<%# Eval("ForecastDescription") %>' runat="server"></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:Dr...

Find Control - GridView
Hi I'm using a standard gridView to which I've added the ability to Edit. I've converted one of the fields to a custom template and within that field I've added a textbox (to the update template). When the user clicks the edit button, I'd like to be able to update that text box. I know I need to use FindControl, but is it using Row Editing? Can someone please help with the code? (I'm using C#). Many thanksRichard Check this:http://www.asp.net/learn/data-access/tutorial-12-vb.aspxPlease remember to click “Mark as Answer” on the post that helps you You can edit ...

Finding a control in GridView in EDIT Mode
Ok... Why MS changed this so drastically from 1.1 is beyond me, however, I cannot seem to get a reference to a drop down list when  a GRIDVIEW goes into EDIT mode.   WHY? Here is the template column in the GridView <asp:TemplateField HeaderText="Roles For User"> <EditItemTemplate> <asp:DropDownList ID="ddRoles" runat="server" /> </EditItemTemplate> <ItemTemplate> <asp:DataList ID="dlRoles" runat="server" /> </ItemTemplate> </asp:TemplateField>   NOW, when the edit event gets called on the GRIDVIEW, it fires this e...

GridView Control (Edit Mode) with a checkboxlist
If there is an aswer somewher in the forums please point it out I could not find one. I have a gridview - that simply displays data untill i hit edit then a column is changed into a Checkbox list where I mark the options they already have marked - this part works fine When i click the save icon on the datagrid row - the RowUpdating routine runs but none of the checkbox items I have chosen are saved to the database - I think the problem is that I load the checkboxlist dynamically when the grid goes into the edit mode - Can anyone give me a good solution on this   TIADylan Ba...

Gridview edit mode
I have a gridview that has a bound dropdownlist inside its EditItemTemplate.  How do I capture the event when the user selects a different item in the dropdown?I need to update the other columns in the selected row to enable/disable validation controls based upon which item is chosen in the dropdown.Thanks,Greg...

Replace Textbox with any other control in Insert/Edit mode of Gridview
HI, I want to replace textbox control with a Fileupload control (or any other controls) in the insert/edit mode of my gridview, can this be done? Thanks, Tuntoo In general, you'll ned to use a templatefield, rather than a boundfield (or auto generated columns).  Within the template field, define an itemtemplate for the data when not being edited, and an edititemtemplate with the desired control when the data is being edited.  Here's an example http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.templatefield.edititemtemplate.aspx I'm not sure you can set t...

Hiding control in gridview on any condition on edit event mode.
Hi i want to hide Panel1 and Panel2  control when RowEditing  event occur based on a lblStatus (HiddenField) value(There are two value for Status 0,1 ) when suppose in a row has Status value '1' then on clicking event Edit it should show only Panel1 during update and if any row has Status value '0' then on clicking event Edit it should show only Panel2 during update then how should i bind it in run time help me please. <asp:TemplateField HeaderText="Title"> <EditItemTemplate> <asp:Label ID="lblETitle" runat=&quo...

Referencing Gridview edit mode from vb.net code
Hey guys,Have a grid view that displays a number of items. I then have code in the "RowDataBound" event that loops through the GridView to find the row a particular value and make the edit and delete buttons for that row invisible so the user can not change them. Problem is when the GridView changes to the Edit template the buttons are no longer there so I get a null reference error. To fix this I want to enclose my original code in an IF statement so it only runs if the GridViewRow is not in edit mode. However am not sure how to reference the currently active template.I could bodg...

Web resources about - Gridview Edit Mode Times out on large table - asp.net.presentation-controls

GridView SelectedItem Binding Gotcha in WinRT
Last night when I was doing some WinRT hacking I was trying to setup databinding to the selected item in the GridView control and I ran into ...

CNW Group
Home Services Beyond the Wire About CNW Financials Webcasts Events My CNW All News Releases Advanced Search Gridview Latest News Releases All ...

CNW Group
... Services Beyond the Wire About CNW my CNW CNW Access CNW Directories Financials Webcasts Events my CNW All News Releases Advanced Search Gridview ...

CNW Group
Home Services Beyond the Wire About CNW Financials Webcasts Events My CNW All News Releases Add a Filter Gridview Latest News Releases All Today ...

New CmdLets of Powershell 2.0
New CmdLets of Powershell 2.0

Price Drop: Softbox
... objects- create product reflection- changing the background with something more interestingUse it as:- softbox- honeycomb softbox- gridview ...

Profile.aspx: ASP Alliance
.NET,ASP,ASP.NET,SQL,XML,HTML,ADO,ADO.NET,JavaScript,JScript,CSharp,VBScript and VB tutorials from AspAlliance.

Quick Answers - CodeProject
Questions - Free source code and tutorials for Software developers and Architects.; Updated: 25 Oct 2012

DotNetKicks.com - Upcoming stories
DotNetKicks.com is a community based news site edited by our members. It specialises in .NET development techniques, technologies and tools including ...

View Features - ExtendASP
Call 847-681-9827 or Request a Demo View Features Testimonials Pricing About Us Coming Soon ExtendASP exposes every feature, more than any other ...

Resources last updated: 11/24/2015 7:14:20 PM