分页后datagrid内的文本框 [英] Textboxes inside datagrid after pagination

查看:75
本文介绍了分页后datagrid内的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据网格内有一个文本框.我在datagrid上每页有25条记录,总共有600条记录.我仅获得当前页面的文本框值.但是我需要所有页面的值.

I have a textbox inside a datagrid. I have 25 records per page on the datagrid which is having a total count of 600. I am getting only the textbox values of the curent page. But I need the values of all the pages. How is it possible?

推荐答案

将文本框放在datagrid的
Put the textbox inside
<ItemTemplate> 

内;怎么办?创建该数据网格的itemdatabound事件,然后从CS页面使用findcontrol查找文本框控件并获取单个文本框文本.

如果对理解有任何困惑,请随时提出.
编码愉快.

inside datagrid; create itemdatabound event of that datagrid and from the cs page use findcontrol to find the textbox control and fetch individual textbox text.

If any confusion to understand don''t hesitate to ask.
Happy coding.


这篇关于分页后datagrid内的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆