腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
0
回答
尝试
在
已有
itemsource
的
datagrid
中
添加
combobox
、
、
、
、
如果我有一个带有项目来源
的
组合框,例如:这可以很好地工作。其中
Combobox
.Options是字符串列表{"option1","option 2",...等}例如: <
DataGrid
浏览 5
提问于2017-11-29
得票数 0
回答已采纳
2
回答
如何将元素
的
控件父DataContext获取到元素数据绑定?
假设我有一个用户控件,其中
的
datacontext绑定到一个VM。此VM具有列表MyList
的
属性。在这个用户控件
中
,我有一个
ComboBox
,我想设置以下类型
的
xaml <StackPanelDataGridTemplateColumn.CellTemplate>
浏览 0
提问于2010-11-10
得票数 1
2
回答
Wpf :组合框内
的
自定义数据集
、
、
、
、
我有一个视图,在其中我有一个数据集,在数据栏
中
,我把一个列作为DataGridTemplateColumn .I
在
DataGridTemplate列中放置一个组合框,我
在
combobox
.Hence
中
定义了一个数据板--用户可以
在
组合框上输入文本,结果被过滤到CustomeDatagrid
中
,用户可以
在
CustomeDatagrid上选择项。以下是我
的
要求: 我试着把它弄清楚。这是我
的
XAML: <<em
浏览 4
提问于2014-06-06
得票数 3
回答已采纳
1
回答
在
父属性上绑定
的
WPF
DataGrid
单元
、
、
、
我有一个
DataGrid
,它将
ItemSource
属性绑定到来自
ItemSource
的
属性
中
,我希望网格
中
的
combobox
列也绑定到相同模型
的
属性,而不是绑定在
ItemSource
上
的
属性对象内。<
DataGrid
ItemsSource="{Binding Path=Model.ObjectList}" AutoGenerateColumns=&quo
浏览 2
提问于2015-03-25
得票数 2
回答已采纳
2
回答
绑定
ComboBox
项目源
、
、
、
在
一个
DataGrid
(它有它
的
ItemSource
)
中
,我
的
行有一个
ComboBox
,我想把它
的
ItemSource
绑定到ViewModel
中
的
一个列表上,但是我做不到。示例:
浏览 0
提问于2010-12-22
得票数 1
1
回答
如何从位于DataGridComboBoxColumn内部
的
property List<T>
中
填充ObservableCollection<T>?MVVM
、
、
、
、
在
视图模型类中有一个属性ObservableCollection SomeEmployee: public string EmployeeName {get; set;}我
的
DataGrid
: <
DataGrid
ItemsSource="{SomeE
浏览 1
提问于2015-09-15
得票数 0
1
回答
如何在DataGridTemplateColumn
中
访问
Combobox
.
ItemSource
属性
、
、
如果我
在
XAML中有DataGridComboBoxColumn我可以使用以下命令
在
代码
中
引用comboxColumn1.
Itemsource
如果我现在改用DataGridTemplateColumn"Col2" Head
浏览 0
提问于2012-10-05
得票数 0
回答已采纳
2
回答
使用WPF Caliburn,如何根据组合框选择更改数据网格绑定?
、
、
即将
添加
以下功能如果选中此组合框,我想要更改数据网格
的
项来源。 有没有与此相关
的
例子?
浏览 3
提问于2018-05-08
得票数 0
1
回答
对于DataGridComboBox C#
中
的
每一行,
Itemsource
绑定是唯一
的
、
、
、
我有一个具有public ObservableCollection<IProfile> Profiles { get; set; }属性
的
ViewModel,它填充一个
DataGrid
。
在
DataGrid
中
,有一个
ComboBox
列: Header="Header",因为与其他行相比,每一行
的
ComboBox
源都不同
浏览 9
提问于2019-11-30
得票数 0
1
回答
从StaticResouce到数据网格
ItemSource
的
绑定组合框选择
、
、
、
、
我正在
尝试
绑定我
的
列表VC_Functions,它是我
的
组合框
的
StaticResource。选择
的
值应该双向绑定到
ComboBox
所在
的
Datagrid
的
ItemsSource
的
参数function_tid。VC_Functions被定义为vc_double
的
列表。因此,从本质上讲,我正在
尝试
使用两个参数name和desc来填充我
的
ComboBox</e
浏览 13
提问于2021-04-29
得票数 0
1
回答
在
不同行
中
添加
不同值
的
DataGrid
复选框列
、
、
、
、
P_Value4 { get; set; } public string P_Unit { get; set; }
在
我
的
DataGrid
中
,我
在
DataTemplateColumn
中
添加
了一个组合框。</DataTemplate></
浏览 2
提问于2013-08-27
得票数 3
回答已采纳
2
回答
WPF
DataGrid
CanUserAddRows = True
在
通过接口本身向
DataGrid
添加
行时,我似乎遇到了问题。下面是UI
的
屏幕截图:如您所见,在数据库中找到了0行,因此右侧
的
DataGrid
中
没有任何显示。但是我希望那里有一个空行,用于手动
添加
行。
DataGrid
.CanUserAddRows设置为True,但没有任何效果。这里是xaml
的
DataGrid
,我冒昧地删除了一些代码,以使其更小。</
DataGrid
浏览 4
提问于2014-01-13
得票数 7
回答已采纳
1
回答
如何从
DataGrid
wpf
中
的
ComboBox
列获取SelectedItem属性
、
、
、
、
现在,我想从一个对象列表(
DataGrid
ItemSource
)创建一个
DataGrid
,该对象列表包含一个项目角色、应该做这项工作
的
雇员和也可以做这项工作
的
雇员列表。
在
DataGrid
中
是一个
ComboBox
列,它使用另一个对象列表作为
ItemSource
,您可以在其中更改该作业员工。我将这个列表称为"ChildList“。基本上,我需要遍历
DataGrid
中
浏览 93
提问于2019-02-15
得票数 0
回答已采纳
2
回答
插入记录后刷新
DataGrid
、
、
我想在插入新记录后刷新我
的
DataGrid
。我再次
尝试
使用新
的
源码绑定
DataGrid
:但这似乎没有帮助。也
尝试
了dgr_
Datagrid
.reload(True),但再次失败。我
在
绑定后检查了
DataGrid
的
ItemSource
,发现其中
添加
了新<em
浏览 0
提问于2011-12-30
得票数 1
1
回答
ComboBox
不显示DataGridTemplateColumn
中
的
绑定数据
、
、
、
、
我已经创建了一个自定义
DataGrid
,其中定义了组合框列。我试图向
combobox
提供
itemsource
值,但它在运行时没有
在
combobox
中
填充数据。这是C#和XAML代码。public MainWindow() InitializeComponent();
浏览 2
提问于2017-12-19
得票数 0
回答已采纳
2
回答
按钮启用WPF
、
、
、
、
现在,我想要做
的
是,当我从两个ComboBoxes中选择任何项时,位于
DataGrid
之外
的
按钮应该被启用。 <
DataGrid
.Columns>
浏览 0
提问于2013-07-18
得票数 1
3
回答
简单
的
双向绑定silverlight数据到一个list<T>问题
、
Silverlight应用程序与
DataGrid
有一个页面。List<Data> data = GetTheList();//returns the list of data
dataGrid
.
ItemSource
= data;第二次,我使用相同
的
行,但我
在
列表
中</e
浏览 5
提问于2011-06-29
得票数 0
回答已采纳
3
回答
如何从Data组合框列
中
获得选定
的
项值
、
、
、
、
数据网格列如下: <DataGridTextColumn Header="ID" SelectedItemBinding="{SelectedValue}"/>对于<e
浏览 7
提问于2015-07-14
得票数 4
回答已采纳
1
回答
在
包含
ComboBox
的
DataGridTemplateColumn
中
,SelectedItem为空
、
、
我有一个
Datagrid
和
ComboBox
的
DataGridTemplateColumn <
ComboBox
我
在
get和set函数上都设置了断点,
在
更改
DataGrid
的
ItemSource
之后,它在get函数上停止,但在从列表中选择一个项目后,
在
set函数上从未停止过。 为什么?
浏览 0
提问于2013-02-07
得票数 2
回答已采纳
2
回答
WPF MVVM将
ComboBox
绑定到数据网格选定项
、
、
、
有没有人有一个将
ComboBox
绑定到
DataGrid
的
选定项
的
示例?我已经
尝试
了很多方法,但我似乎不能让它工作。我是MVVM
的
新手,所以我做错了什么。任何帮助都将不胜感激。我将组合框所在
的
网格
的
数据上下文设置为数据网格,但是当我从数据网格中选择一行时,组合框不会改变。所有文本框都填充了来自数据网格
的
数据,但组合框不变。正在讨论
的
组合框是cmbRoles。
浏览 2
提问于2013-01-04
得票数 2
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券