gridview asp.net的问题 [英] Problem with gridview asp.net
问题描述
我对gridview控件有问题,当我在gridview中更改页面时,之前选择的信息将丢失,我需要保留分页后选择的数据。
此gridview有文本框和下拉列表字段,每页有10行。
另一个我有的问题是,我必须在文本框中输入代码,同一行中的下拉列表必须填充它,但是当我在另一行中插入相同的页面时,回发和在中选择的数据以前的行将丢失。我只维护实际的行数据。
我会等你的评论,
谢谢
Hi,
I have a problem with the gridview control, when I change the page in the gridview the information that was selected before will be lose, I need to persist the data that were selected after pagination.
This gridview has textbox and dropdownlist fields, It has 10 rows per page.
Another issue that I have is, I have to enter a code in the textbox, the dropdownlist that is in the same row has to be fill it but when I insert in another row the same the page do postback and the data that was selected in the previous rows will be lose. I only maintain the actual row data.
I'll waiting for your comments,
Thank You
推荐答案
在网格视图中回发时尝试使用更新面板。
Try to use update panels when post back occurs in grid view.
这篇关于gridview asp.net的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!