简体   繁体   English

如何将devexpress gridview的两列的值之间的差异显示到另一个列中

[英]How can I Show the difference between values of two columns of devexpress gridview into anothere column

I have a devexpress gridview in which there is a column containing textbox. 我有一个devexpress gridview,其中有一个包含文本框的列。 Users will input integer values into the textbox. 用户将在文本框中输入整数值。 I want to show the differences between the given values(textboxes) and values of a column of the gridview into another column of the gridview. 我想在给定的值(文本框)和网格视图的另一列的网格视图的值之间显示差异。 Client side is preferable. 最好是客户端。 Can anyone help me? 谁能帮我?

Follow these reference links to find solution for your desired functionality: 请按照以下参考链接查找所需功能的解决方案:
ASPxGridView - How to get a value of ASPxTextBox placed in DataItemTemplate ASPxGridView-如何获取放置在DataItemTemplate中的ASPxTextBox的值
ASPxGridView - How to set value for ASPxTextBox on client side ASPxGridView-如何在客户端设置ASPxTextBox的值
ASPxGridView - How to perform client-side validation of Edit Form controls placed in ASPxPageControl ASPxGridView-如何对放置在ASPxPageControl中的Edit Form控件执行客户端验证
ASPxGridView - Get value of a textbox in Edit Form on the client side ASPxGridView-在客户端的“编辑表单”中获取文本框的值

Set your ASPxTextBox.ClientInstanceName property of TextBox to access it client side. 设置TextBox的ASPxTextBox.ClientInstanceName属性以访问它的客户端。 After this, you can use the client-side ASPxClientTextBox.SetText or ASPxClientTextBox.GetText method to set a value to the textbox. 此后,可以使用客户端ASPxClientTextBox.SetText或ASPxClientTextBox.GetText方法将值设置为文本框。

May be this example specific to your requirement: 可能是针对您的要求的以下示例:
ASPxGridView - How to calculate column values on the client side via editors inside DataItemTemplate ASPxGridView-如何通过DataItemTemplate内部的编辑器在客户端计算列值

Hope this help. 希望能有所帮助。

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

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