转换可以使用复选框过滤的数据表 [英] convert datatable which can be filtered using checkbox

查看:97
本文介绍了转换可以使用复选框过滤的数据表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i有数据表,我使用会话从一个页面传递到其他页面



在第二页,我想要使用数据表以div显示...另外我使用第二页中的复选框从数据表中过滤



如何将数据表转换为gridview ..或者你建议使用什么????



我也想过滤使用复选框,怎么做



问候

解决方案

引用:

如何将数据表转换为gridview ..或者你建议怎么做使用???

 yourGridViewID.DataSource = dt;  //   dt是DataTable。 
yourGridViewID.DataBind();





引用:

我也希望使用<$ c $过滤c> CheckBox ,如何做到这一点

如果您知道如何过滤 GridView 行,那么何时过滤真的没关系。这是因为这是重要的事件。您需要根据您的要求在相应的事件中过滤 GridView



根据您的问题,您应该过滤 GridView CheckBox CheckedChange 客户端或服务器中的事件侧。


Hi
i have datatable which i pass from one page to other using session

in second page, i want to use datatable to display in div..also i use checkboxes in second page for filtering from datatable

how to convert datatable to gridview ..or u suggest what to use ???

also i want to filter using checkbox , how to do this

regards

解决方案

Quote:

how to convert datatable to gridview ..or u suggest what to use ???

yourGridViewID.DataSource = dt; // dt is the DataTable.
yourGridViewID.DataBind();



Quote:

also i want to filter using CheckBox , how to do this

If you know how to filter GridView rows, then it really does not matter when to filter. This is because it is the event which matters. You need to filter GridView in the appropriate Event according to your requirements.

According to your question, you should filter GridView inside CheckBox CheckedChange Event either in Client or Server side.


这篇关于转换可以使用复选框过滤的数据表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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