接下来,使用C#.net中的gridview的上一个按钮代码 [英] next,prev button codes using gridview in C#.net

查看:68
本文介绍了接下来,使用C#.net中的gridview的上一个按钮代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我采取了2种形式.在第一种形式中,我采取了gridview并显示了数据.而在gridview中的单元格双击事件中,另一种形式是使用gridview选择的值加载的;并且ii将这些值分配给了第二种形式的文本框.我以第二种形式检索下一个,上一个,最后一个,最后一个记录.请任何人都可以帮助我.

I have taken 2 forms.in first form i taken gridview and displayed the data.while cell double click event in gridview another form is loaded with gridview selected values.And i i assign the values to textboxes in 2nd form.now how can i retrivwe the next,prev,first,last records in second form.pls any one can help me.

推荐答案

嗯,对于这种情况:
1.在表格1中为搜索结果提供一个序列号,并根据当前选择的序列号跟踪记录

2.在唯一标识符上设置有序结果集,以便您可以基于标识符在下一个,上一个结果集上进行操作.

试试吧!
Well, for such a scenario:
1. Either have a sequence number to the search result in your form 1 and track the records based on the current selected sequence number
OR
2. have a ordered result set on unique identifier such that you can do the next, previous on result set based on the identifier.

Try!


这篇关于接下来,使用C#.net中的gridview的上一个按钮代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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