在用户控件ascx页面上绑定aspx页面和gridview上的数据时排序问题 [英] Sorting issue while binding data on aspx page and gridview on user control ascx page

查看:93
本文介绍了在用户控件ascx页面上绑定aspx页面和gridview上的数据时排序问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在使用gridview的一个ascx控件,我可以在多个页面中使用它。



现在问题是:



我在gridview中有一个额外的控件,绑定后我检查条件并使该控件可见true或false每一行。



根据我的要求,这是绑定和条件正常,



但是当我正在gridview中进行排序或分页它再次绑定并正确检查条件



但是它显示了对gridview每一行的每一行的控制。



aspx页面和gridview上的网格绑定和条件检查在ascx页面上。



请帮忙。



提前感谢。

Hi Everyone,

I am using one ascx control of gridview from where i can use it in multiple pages.

Now the issue is:

I have an additional control in gridview and after binding i am checking the condition and make that control visible true or false on every row.

It is binding and condition goes properly as per my requirement,

but when i am doing sorting or paging in gridview it is again binding and check conditions properly

but it shows that control on each on every row of the gridview.

Gridbinding and condition checking on aspx page and gridview is on ascx page.

Kindly do needful.

thanks in advance.

推荐答案

这篇关于在用户控件ascx页面上绑定aspx页面和gridview上的数据时排序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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