Can somebody help me?
I am developing a website using Microsoft Expression Web. My database is MS Access. My page extension is .aspx (ASP.NET)
I have two gridview:
Pending Records GridView should be under a PendingRecords.aspx page. I want this gridview to allow me to accept first all the requested records before they go straight under the Main Gridview. Of course, the gridview have "ADD" button. When I click the button, I want the records to be transfer in Main Records GridView.
Main GridView should be under a Records.aspx page. I want this gridview to display all the records that I already accepted in Pending Records Gridview.
Simple as that!
Thanks in advance!
one the button click event save the data from first gridview into the session and when load it again in the second gridview when page loads or reloads.
it will work if you don't have much data to move.....
hope will give you some idea.... :)
Related
I have an UpdatePanel which contains GridView and submit button, selecting the submit button causes the update panel to update OK when the GridView contains not many records, however, when the grid view contians a large amount of data, clicking the submit button does not cause the UpdatePanel to update.
Any ideas, I do not know if there is a restriction on the amount of data that can be sent using the ScriptManage/UpdatePanel, but in one instance the page size is 718Kb.
I'm not aware of any restrictions in size but maybe the page is just timing out somewhere? The best idea if you can is to limit the amount of data that you are passing back and forth.
ek_ny's suggestion Re: EnableViewState is a good one that will slash your page sizes if you can implement it.
Another idea is to implement paging in your Gridview so that you are only displaying a manageable number of rows at a time.
If you rebind the GridView then you don't need the GridView to be in the ViewState and you can set the EnableViewState of the GridView property to false.
I have a problem and not getting why is it so. I have a grid view and it contains some 10,000 rows without any pagination. For each Row I have a Edit LinkButton n the TemplateField. On the click of this edit LB the control should go to some Edit Page. The problem here is that after clicking on the LB the page is taking lots of time. On the other hand if I am doing pagination in the GridView and assgning page size = 10 then it is loading very fast. Can anyone please tell me what is the reason. I cant have the pagination for this gridView
Regards,
Vikram
GridView consumes a lot of ViewState.
if you are using other page for editing, maybe you should use Repeater instead of Gridview, and instead of the LinkButton just an Hyperlink with url EditPage.aspx?id={something}
Have you tried removing the viewstate of the grid?? I think that should sort out the issue.
Suppose there is button on which there is event for adding the total sum(there is coloumn Amount in gridview) and posting the data in gridview i.e update of gridview. I want that when user click on button it will update the gridview i.e data will inserted in geridview but it will not add current numeric value to the total sum unless user refresh the page.
For this how to do? Please tell me.
You can use telerik's ASP.NET AJAX controls.
Visit here http://www.telerik.com/products/aspnet-ajax/grid.aspx
I am using a gridview in my form.aspx page. The textboxes in each row of the gridview are to be populated from a datagrid upon clicking a particular field of the datagrid. Is there any way to do the same.....?
Did you check out some of the samples the ASP.NET website? Maybe this one can help?
Gridview quickstart on ASP.NET
Otherwise I suggest you describe your problem in greater details. What's the datasource? Anything specific you can't figure out right now? Are you getting any exceptions?
I have created a GridView whose columns are dynamically created based on my data source. I have implemented these columns by using the approach described here.Those columns display properly on the initial load. However, I need to implement commanding so that a user can edit / delete a row in the GridView.
At this point, I have implemented commanding as I would with a normal GridView. I have a TemplateField with an ItemTemplate that has LinkButton elements for edit and delete. The CommandName for each LinkButton is set to either Edit or Delete respectively.
Oddly, when a user clicks either the Edit or Delete link, the data in the GridView disappears. However, I have verified that I am in fact re-binding the data when one of these LinkButton elements is selected.
Can anyone provide some suggestions as to what the cause could be?
Thank you!
Here are good examples. You can figure out postback issue.
http://quickstarts.asp.net/QuickStartV20/aspnet/