转换可以使用复选框过滤的数据表 [英] convert datatable which can be filtered using checkbox
问题描述
嗨
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 thisIf 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 filterGridView
in the appropriate Event according to your requirements.
According to your question, you should filterGridView
insideCheckBox
CheckedChange
Event either in Client or Server side.
这篇关于转换可以使用复选框过滤的数据表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!