问题标签 [xamdatagrid]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
.net - ContextualHelp on Infragistics XamFormulaEditor 和 FormulaEditorDialog
我正在尝试将公式编辑功能与我的 WPF 应用程序中的 XamDataGrid 控件集成。该控件将其 AutoGenerateFields 属性设置为 false,并成功绑定数据。我在窗口上有一个 XamFormulaEditor 控件,以允许用户构建自己的公式并将结果作为新字段(列)添加到现有的 XamDataGrid 中。
我已将 XamFormulaEditor 的 Target 属性设置为
目标=“{绑定元素名称=xamGrid}”。
我可以输入像“[Last4] + 2”这样的公式,并让我的新列具有正确的值。问题是,当我通过使用自动完成建议和操作数列表来使用内置的 ContextualHelp 功能时,结果出错了,因为源列始终是 Row at 0,因为公式变得像
[//dataPresenterAdapter/Table(0)/counsel_Status_Id]
基本上,我们需要有一个 FormulaEditor 控件,该控件可用于使用 CalculationManager 在 XamDataGrid 中创建一个新字段。
你们中是否有人有在这种情况下可能有用的想法?
或者您是否有实现相同逻辑的示例?
wpf - 如何使 xamDataGrid 的第一行具有不同的背景颜色?
我想让 xamDataGrid 的第一行颜色不同,因为它保存的数据类型与网格的其余部分不同。
wpf - 在 MVVM 中将 XamDataGrid 绑定到 XmlDataProvider
我无法将 a 绑定XamDataGrid
到XmlDataProvider
我的 MVVM 样式项目中的属性。
我从 WebService 调用中获取 XML 字符串,创建 XmlDataProvider,然后尝试将其绑定到 XamDataGrid。XmlDataProvider 正在正确初始化。只是绑定部分不正确。
查看.xaml
视图模型.cs
示例 xml 字符串
通过遵循示例 Infragistics 代码,我能够以代码隐藏的方式毫不费力地做到这一点。但是,这是我遇到困难的 MVVM 方式。
此解决方案似乎不适用于 XamDataGrid。
c# - Infragistics XamTextEditor 复制到 DataTable (WPF)
我正在使用绑定到 DataTable 的 XamDataGrid。当我在行中输入数据并点击保存(将数据保存回数据库)时,它永远不会保存输入的最后一行。我猜是因为我需要从当前正在输入数据的单元格中跳出,并且它只会在编辑结束时将文本移动到 DataTable 中。有没有办法在用户输入数据时将数据复制到 DataTable,这样他们就不必强制编辑结束,还是有更好的方法?谢谢!
c# - 编辑 XamDataGrid 标头
我想编辑一个 xamdatagrid 所以它看起来像这样
|更新 |
|通过 | 失败 |
| 1 | 0 |
| 0 | 1 |
(我的间距不好,但你明白了)我想在 xamdatagrid 上设置此模板并将其绑定到数据集。这可能吗?如果有可能我在哪里可以找到 c# 中的一个很好的例子?我一直在寻找不好的和不完整的例子。
c# - 如何更改 xamdatagrid 的文本颜色?
我想知道如何更改 xamdatagrid 的文本颜色。我不是在谈论 xaml 部分。我想知道您是否可以更改代码的 c# 部分中文本的颜色。我还想看一个 c# 和 xaml 代码的示例,看看它是如何工作的。谢谢
c# - 更改 xamdatagrid 的文本颜色
我发现了如何从 xamdatagrid 单元格中更改文本颜色。现在我这样做:
rec.FieldLayout.Fields["Message Category"].Settings.CellValuePresenterStyleSelector = colors;
rec 是一个数据记录。和颜色是一个 StyleSelector
无论如何我可以做到这一点,但不仅仅是改变一个单元格,我可以改变整行?
c# - 编辑 xamdatagrid 行颜色
我知道如何从 xamdatagrid 更改文本的颜色。我所做的是在 xaml 文件中定义样式并添加: igDP:CellValuePresenter
然后在 InitializeRecord 方法上获取每条记录并使用:
record.FieldLayout.Fields["Category"].Settings.CellValuePresenterStyle = Style
What C#我可以使用代码来完成相同的操作,但在 xaml 文件上使用 igDP:DataRecordCellArea 吗?
谢谢
wpf - Template Bindings with UnboundFields in XamDataGrid
all. I have an XamDataGrid of objects; each object has two properties I want to edit within the grid. I'm creating my FieldLayout programatically, to allow a varying number of columns. When I define my layout, I can set the binding for each Field so the PropertyPath points to a particular column in my ViewModel ((i.e. Path="Columns[0]", Path="Columns[1]", etc.) This works fine:
I want to apply a template to the CellValuePresenter to let me edit each field, with one textbox bound to each of the two fields:
As you can see, the template bindings aren't correct. Right now, the template has bindings to one of the columns (Path="DataItem.Columns[0]"), since I can't figure out a simple way to get the index for each column into the template. What I really want is for the CellValuePresenter to get the correct bound object, defined in my FieldLayout, but bind each textbox to the appropiate property.
Any help would be vastly appreciated. Thanks, Ed
c# - XamDataGrid - 单击可编辑单元格时 SelectedItems 为空
当我单击可编辑的单元格时,我注意到 XamDataGrid 的 SelectedItems 属性为空。
如果它不可编辑,则 SelectedItems 集合会反映网格中所选记录的可视指示。
这是一个错误吗?当通过单击可编辑单元格选择它们时,是否有一种解决方法来获取 selectedItems?
这是一个反映这种行为的简单示例:
xml:
代码:
如果我点击“Bond”“Miller”然后点击“James”,我会得到以下信息:
即使“詹姆斯邦德”记录显示为选中状态,它也不在 SelectedItems 集合中。
如果您显示有关所选记录的附加信息,这会非常烦人。