简体   繁体   English

如何在扩展.net网格面板中显示动态数据?

[英]How to Display dynamic data in extension .net grid panel?

I have a Grid Panel of extension .net control in my web application .Now the grid panel is bind with Store . 我有扩展.NET控件网格面板在我的web应用程序。现在网格面板与存储结合。 I have encrypted login user name & the database stores encrypted login name . 我已经加密了登录用户名 ,数据库存储了已加密的登录名。 Now I want the grid panel to show the actual decrypted data in the field . 现在,我希望网格面板在该字段中显示实际的解密数据 But I have no idea regarding where to decrypt during building of grid data in extension .net controls. 但是我不知道在扩展.net控件中构建网格数据时在哪里解密。 Plz help. 请帮助。

Before the datasource of Source was bound, I simply called a for loop of Db data just like a rowbounddata event, & within that I decrypted my column(field) data. 在绑定Source的数据源之前,我就像调用rowbounddata事件一样简单地调用了Db数据的for循环, 并且在其中解密了我的column(field)数据。 At last bind the latest datasource 最后绑定最新的数据源

for (int i = 0; i < this.getUserList(this.getUserFilter()).Count; i++)
{
  this.getUserList(this.getUserFilter())[i].LoginName = CommonUtilities.Decrypt(this.getUserList(this.getUserFilter())[i].LoginName, ConfigurationManager.AppSettings["EightCharacterEncryptionKey"]);
}
this.Store1.DataSource = this.getUserList(this.getUserFilter());
this.Store1.DataBind();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM