腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9348)
视频
沙龙
1
回答
显示工具提示时
DataGridCell
内容
消失
如果不让单元格中的
内容
消失,我似乎无法将ToolTip
绑定
到
DataGridCell
的
内容
。换句话说,当我将鼠标放在单元格上时,工具提示会按预期出现,但单元格的
内容
不再可见(除非我向下滚动列表并向上滚动)。Bellow是我遇到麻烦的
WPF
: <Style TargetType="
DataGridCell
"> <Setter Propert
浏览 0
提问于2013-02-27
得票数 3
回答已采纳
1
回答
WPF
DataGrid
绑定
DataGridCell
内容
、
、
、
、
我有一个
DataGridCell
样式,希望将单元格的
内容
绑定
到图像的源属性,下面是我目前正在使用的XAML: <Setter Property="Background" Value="Transparent" /> <Sette
浏览 2
提问于2010-08-17
得票数 4
回答已采纳
2
回答
附加属性不触发IMultiValueConverter
、
、
、
下面是我的
DataGrid
,它附带了一些属性,这些属性与弹出控件相关联。ComboBox由一个枚举填充。<
DataGrid
Name="GenericDataGrid"
浏览 4
提问于2015-01-10
得票数 2
回答已采纳
1
回答
将组合框作为其列之一添加到Datatable中,并将此datatable
绑定
到datatgrid
、
table.Rows.Add(cmbBox);
dataGrid
1.ItemsSource = table.DefaultView; 我得到的输出是
浏览 3
提问于2015-12-01
得票数 0
1
回答
WPF
to Silverlight,解决TargetType问题
、
、
、
我有一个转换器,可以根据
DataGrid
上的
绑定
值返回背景色。这在
WPF
中工作得很好,但是当我把这段代码放到silverlight中时,它并不高兴。看了这里的一些帖子,我似乎不能使用TargetType="{x:Type my:
DataGridCell
}",答案是简单地使用TargetType="my:
DataGridCell
",但同样不起作用。另一个建议是给样式一个键,但是因为我的样式是在我的
DataGrid
上设置的,所以我不能把它移到Page.
浏览 0
提问于2009-11-12
得票数 0
回答已采纳
1
回答
如何在移除父级时避免
绑定
错误
、
、
、
、
我正在做一个
WPF
项目,我正在创建一些样式,其中之一是
DataGridCell
样式,它工作得很好。BindingExpression:Path=CanUserAddRows; DataItem=null; target element is '
DataGridCell
' 所以,我想这个错误是因为当
DataGridCell
从
浏览 1
提问于2012-07-13
得票数 5
2
回答
基于可观测集合属性的
WPF
禁用DataGridCheckBoxColumn
、
、
、
我是一个新的
WPF
初学者,并有困难实现一个小的事情。IsSelected}"> <Style TargetType="
DataGridCell
IsSelected}"> <Style T
浏览 0
提问于2016-05-19
得票数 0
2
回答
如何在
WPF
中获取
Datagrid
的单元格数据值?
、
、
、
、
我是一个非常新手的
WPF
,我想用
Datagrid
控件做一个数据输入表单。我被困住了,如何获取单元格数据值以将其存储到数据库中?如何在
WPF
中获得此功能?
浏览 6
提问于2016-04-07
得票数 1
2
回答
从DataTemplate更新
绑定
、
、
我有一个带有名称的
WPF
,并且我对行进行分组(在本例中按“
DataGrid
”)。我对每个组都有一个汇总行("Name“和我在Converter中计算的总”数量“)。问题是我需要强制对汇总行进行
绑定
更新,但是我不能访问它,因为它在DataTemplate中。<DataTemplate> <
DataGridCell<
浏览 2
提问于2012-08-10
得票数 1
3
回答
C#
WPF
数据网格IvalueConverter
绑定
问题
、
、
、
、
<
DataGrid
.CellStyle> <Style.Setters</Style.Setters> </
DataGrid
.CellStyle
浏览 3
提问于2017-10-16
得票数 2
回答已采纳
1
回答
带滚动条的
WPF
工具包DataGridTextColumn
、
、
、
、
控件的数据网格的一些列是带有双向
绑定
的DataGridTextColumn (从
绑定
模型读取数据和向
绑定
模型写入数据)。每个单元格列都包含一些用户定义的样式,因此我使用
DataGridCell
模板替换创建了自己的样式。Key="DataGridTextColumnWithScrollBar" TargetType="{x:Type Control}" BasedOn="{StaticResource {x:Type
wpf
_toolkit:
Data
浏览 5
提问于2014-08-28
得票数 1
1
回答
基于属性的
WPF
触发器也
绑定
了单元格
、
、
、
所以我想改变任何
dataGridCell
的背景颜色。 public Boolean DoesMatch { get; set; } 我一直试图在DoesMatch上设置一个带有触发器的单元格模板,但
wpf
<
DataGrid
x:Name="dgNew" AutoGenerateColumns="True" > <
Data
浏览 3
提问于2014-09-10
得票数 1
1
回答
如何在右键单击
WPF
DataGrid
时访问
DataGridCell
、
、
、
、
我有一个
WPF
DataGrid
和一个右键单击
DataGrid
的event MouseRightButtonUp。如何在事件处理程序中访问
DataGridCell
?private void
DataGrid
_MouseRightButtonUp(object sender, MouseButtonEventArgs e) //access
DataGridCell
浏览 0
提问于2012-11-19
得票数 5
回答已采纳
3
回答
从
DataGrid
中选择
DataGridCell
、
、
、
、
我有一个
DataGrid
的
WPF
控件,我想得到一个特定的
DataGridCell
。我知道行和列的索引。我该怎么做呢? 我需要
DataGridCell
,因为我必须访问它的
内容
。因此,如果我有(例如)一列DataGridTextColum,我的
内容
将是一个TextBlock对象。
浏览 8
提问于2012-04-02
得票数 12
1
回答
自定义
DataGrid
控件中子控件的默认样式
、
、
、
、
我正在开发一个自定义
DataGrid
控件,该控件派生自标准的
WPF
DataGrid
,以便将其扩展到一些特定于客户端的需求。并显式地设置我的CellStyle的local:
DataGrid
(否则由于某种原因,它仍然使用标准的
WPF
样式(?)<Setter Property="CellStyle" Value="{StaticResource {x:Type
DataGridCell
}}"/> 当客户端在本地使用此自定义<em
浏览 1
提问于2016-09-26
得票数 0
1
回答
如何将ToolTip用于
DataGrid
?
、
我看过一些在线教程,并创建了一个ToolTip --如下所示: <
DataGrid
.CellStyle> <Setter Property="
DataGridCell
.ToolTip"> </Setter> <
浏览 1
提问于2015-09-07
得票数 6
回答已采纳
3
回答
将
WPF
DataGrid
绑定
到DataTable
、
、
、
如果我在语言中犯了错误,我向您道歉:)<
DataGrid
.CellStyle>
浏览 1
提问于2013-07-29
得票数 9
3
回答
更改数据网格单元格的背景
、
private void Retrieve_rows(object item) DataRow row = mygrid.GetContainerFromItem(item) as
DataGrid
.DataRow{ {
浏览 1
提问于2012-01-06
得票数 0
3
回答
从数据单元格或行获取文本
、
、
、
、
你好,我正在使用数据网格在
WPF
中显示一个可观察的集合。现在,如何从
DataGrid
中获取选定的行文本,以便调用函数。这是我的XAML: <
DataGrid
.Columns> <Da
浏览 1
提问于2017-08-30
得票数 2
回答已采纳
1
回答
无法编辑
DataGrid
WPF
中的特定单元格
、
、
我正在开发一个应用程序,可以在
WPF
中验证
DataGrid
中的单元格。例如,如果单元格中存在错误,我将使该单元格可编辑。但是,更改后的数据不会
绑定
到数据网格的ItemsSource。= null)
DataGridCell
cell = dgInventory.Columns[column].GetCellContent(gridRow).Parent as
DataGridCell
但是,当我访问
DataGrid
的ItemsSource时,它仍然显示相同的旧数据。XAML中的
浏览 3
提问于2013-07-22
得票数 0
点击加载更多
相关
资讯
用wpf开发自定义控件 包含下拉列表和表格及分页
基于 WPF + SqlSugar 框架实现 MySQL 和 SQLite 数据库表界面显示及 CRUD 功
基于Wpf+md+prism+sqlsugar管理界面开发
用Wpf EF框架分别是mysql和sqlite数据库表界面显示及CRUD功能
C#代码示例:在WinForm中创建并绑定一个DataTable
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
实时音视频
活动推荐
运营活动
广告
关闭
领券