如何创建通用DataGridView? [英] How do I create a generic DataGridView?

查看:66
本文介绍了如何创建通用DataGridView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,



我试图根据用户登录过滤GridView中的数据。这意味着当一个用户登录时,他将能够看到与他的帐户相关的数据,并且数据是从更大的数据集中挖掘的。





我尝试了适配器,但没有太大的成功



有人可以帮忙吗?

解决方案

< blockquote>查看我以前的答案是Gridview可以在多用户应用程序中显示特定登录用户的数据 [ ^ ]。


用户登录后保存UserID / UserName在Session中,然后使用它作为参数来查询要在GridView中显示的数据。


Guys,

I am trying to filter data in a GridView based on user login. This means that when one user logs in he will be able to see data related to his account only and the data is mined from a larger data set


I tried the adapter but have not got too much success

Can anyone help ?

解决方案

See my previous answer Is is possible for Gridview to display data of particular logged in user in multiuser application[^].


Once the user logs in Save the UserID/UserName in Session and then use it as a parameter to query the data to be shown in the GridView.


这篇关于如何创建通用DataGridView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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