数据未按时间过滤 [英] data is not filtering according to time

查看:60
本文介绍了数据未按时间过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的项目中,我们使用面板和datagidview.我想根据面板中的时间过滤来自datagridview中来自数据库的数据.但是它不起作用.我没有使用数据表,数据集和所有数据.

in our project, we r using panel and datagidview.I want to filter data which is coming from database in datagridview according to time which is in panel.But it is not working. I am not using datatable ,dataset, and all.

推荐答案

在您的存储过程中,只需返回您感兴趣的数据(按日​​期过滤). br/>
如果您不想在存储过程中这样做(在正确的位置这样做),则可以使用Linq从数据库返回的数据中提取数据.
In your stored procedure, just return the data you''re interested in (filtered by date).

If you don''t want to do it in the stored procedure (which is the correct place to do it), you can use Linq to extract the data from the data returned from the database.


这篇关于数据未按时间过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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