简体   繁体   English

如何在radgrid中返回值?

[英]How to return the values in a radgrid?

I have a RadGrid which is DataBound to a IDictionary<string,string> where there are 2 GridTemplateColumn containing a textbox, one showing the Key and the other showing the value. 我有一个RadGrid,它与IDictionary<string,string>绑定在一起IDictionary<string,string>其中有2个GridTemplateColumn包含一个文本框,一个显示Key,另一个显示值。 The user can the edit these values. 用户可以编辑这些值。

Is it possible to return a IDictionary which contains the all the values in the RadGrid (including the modified values) based on a button click? 是否可以基于单击按钮返回包含RadGrid中所有值(包括修改后的值)的IDictionary?

This should be possible by extracting the values from the textboxes manually and updating the source IDictionary object accordingly. 通过手动从文本框中提取值并相应地更新源IDictionary对象,应该可以做到这一点。 You may give it a spin to see how it works for you. 您可以试试看它如何为您工作。

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

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