腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2014)
视频
沙龙
2
回答
DataGridCell
_Load如何知道调用数据集的名称
、
、
、
、
private void
DataGridCell
_Load(object sender, RoutedEventArgs e)
DataGridCell
cell = sender as
DataGridCell
; if (cell.Column.DisplayIndex == 2 || cell.Column.DisplayIndex == 3 || cell.Column.DisplayIndex
浏览 1
提问于2015-12-14
得票数 1
回答已采纳
1
回答
WPF c#输入带背景数据表
、
、
、
、
通过将流动的代码绑定到WPF中,我创建了一个具有设置背景单元格的日期网格,如下所示: <Style TargetType="
DataGridCell
浏览 0
提问于2015-10-20
得票数 1
回答已采纳
2
回答
Wpf DataGrid的焦点问题
、
、
、
、
Presses 用户单击一个单元格并输入一个值(我捕获事件并将焦点设置为 EnterValue is committed Focus到Next Cell )通过这样处理
DataGridCell
_Selected事件,我可以实现我想要的目标:
浏览 3
提问于2011-10-20
得票数 0
回答已采纳
2
回答
显示工具提示的
DataGridCell
模板
、
、
、
、
我想在
DataGridCell
上显示工具提示。到目前为止,我尝试了以下方法。但问题是,当我在
DataGridCell
上徘徊时,整个
DataGridCell
内容就会被删除。<Style TargetType="
DataGridCell
"> <Setter.Value> <ControlTemp
浏览 4
提问于2014-12-11
得票数 0
回答已采纳
4
回答
DataGridComboBoxColumn -单击即可自动下拉
、
、
、
我在DataGrid中有一个DataGridComboBoxColum。我希望能够在单元格上单击一次,然后让组合框下拉。目前,我必须点击多次。 <DataGrid AutoGenerateColumns="False" Height="148" HorizontalAlignment="Left" Margin="48,85,0,0" Name ="dg_display" VerticalAlignment="Top" Width="645" CanUserAddRows
浏览 0
提问于2011-11-08
得票数 12
回答已采纳
1
回答
数据行前景颜色更改不起作用
、
、
、
、
这是对以下方面的延续: string[] columnLabels = new string[] { "Column 0", "Column 1", "Column 2", "Column 3", "Column 4", "Column 5" }; { column.He
浏览 2
提问于2016-02-11
得票数 1
回答已采纳
1
回答
如何从WPF中的控件获取用户输入错误
、
、
我的想法是获取VisualChildren of
DataGridCell
类型,然后提取HasError属性,但它不会显示任何错误。} {
浏览 7
提问于2021-11-16
得票数 0
1
回答
数据滚动将水平而不是垂直地裁剪图像。
、
、
、
TextOptions.TextFormattingMode" Value="Display" /> <Style TargetType="
DataGridCell
浏览 2
提问于2015-09-30
得票数 0
回答已采纳
2
回答
颤振: SfDataGrid自动宽度列似乎不像文档那样工作
、
、
、
、
) { if (
dataGridCell
.columnName == 'avatar') { if (
dataGridCell
.value == null) return Container();
浏览 6
提问于2022-07-20
得票数 1
回答已采纳
1
回答
如何从WPF样式传递当前
DataGridCell
信息
、
、
、
、
我有一种TargetType=
DataGridCell
风格,它包含ContextMenu。我需要通过
DataGridCell
将CommandParameter信息传递给该命令。<Style TargetType="{x:Type
DataGridCell
}" x:Key="DataGridCellStyle"> }).Invoke();
浏览 5
提问于2016-01-29
得票数 1
回答已采纳
1
回答
改变标记细胞的颜色
、
、
GetRowIdx(this DataGrid dataGrid, DataGridCellInfo cellInfo) // Use reflection to get
DataGridCell
.RowDataItem; } re
浏览 6
提问于2013-08-22
得票数 0
回答已采纳
1
回答
WPF DataGrid - SelectedItem不改变对FullRow外部文本的选择
、
、
、
Property="CellStyle"> <Style TargetType="
DataGridCell
浏览 0
提问于2018-12-07
得票数 1
回答已采纳
1
回答
如何在获得焦点后立即将单元格置于编辑模式下
、
、
到目前为止我尝试过的:<Style TargetType="{x:Type
DataGridCell
}"></Style>private void
DataGridCell
_GotFocus(ob
浏览 2
提问于2014-07-12
得票数 5
回答已采纳
3
回答
将`System.Collections.IEnumerator`类型转换为`System.Collections.Generic.IEnumerator`
、
我有以下代码:IEnumerator<
DataGridCell
> cells = row.Cells.GetEnumerator()IEnumerator<
DataGridCell
> cells = (IEnumerator<
DataGridCell
>)row.Cells.GetEnumerator(); 我得到了一个运行时错误。
浏览 4
提问于2016-10-11
得票数 1
回答已采纳
3
回答
如何获得WPF数据集的行索引?
、
、
、
我在wpf中使用图像控制列。如果clicked.Can告诉我如何将控件气泡化,单击事件以选择网格的整行,则该控件用于删除datagrid中的行。下面是我现在的代码。 <DataGrid x:Name="dg" > <DataGridTextColumn Header="ID" Binding="{Binding Path=ZoneId}" /> <DataGridTextColumn Header="Sector" Bind
浏览 4
提问于2014-02-17
得票数 0
回答已采纳
1
回答
将样式应用于DataGridTextColumn与MahApps地铁
、
、
、
我刚刚尝试在我的WPF应用程序中使用以下XAML。 <DataGridTextColumn.CellStyle> <Setter Property="FrameworkElement.HorizontalAlignment" Value="Center" />
浏览 5
提问于2016-09-07
得票数 1
回答已采纳
1
回答
将图像添加到显示System.Windows.Controls.Image的DataGridTemplateColumn标题
、
我尝试将Image添加到DataGridTemplateColumn header中 <DataGridTemplateColumn.Header> <
浏览 0
提问于2015-10-26
得票数 0
1
回答
WPF - MouseDown通过
DataGridCell
上的AutomationPeer
、
、
、
、
我有以下在
DataGridCell
上引发MouseLeftButtonDownEvent的代码。
DataGridCell
dataGridCell
= cell as
DataGridCell
; new MouseButtonEventArgs(Mouse.PrimaryDevice, 0, MouseButton.Left); someEventArgs.RoutedEvent =
DataGridCell
.MouseL
浏览 3
提问于2011-12-19
得票数 1
回答已采纳
1
回答
WPF datagrid只有在双击时才能编辑
、
、
我有一个DataGrid,我希望用户能够编辑某些列,但前提是用户必须先双击该单元格。在那一刻,如果他们单击单元格,然后开始输入,它会立即进入编辑模式。有什么帮助/其他建议吗?谢谢
浏览 2
提问于2018-11-29
得票数 0
2
回答
基于单元格值的数据网格颜色
、
、
、
看起来像这样 <DataGrid ItemsSource="{Binding DTableDay}" AutoGenerateColumns="True" > <
DataGridCell
> <
DataGridCell
.Style> <Style TargetType="
DataGridCell
<
浏览 8
提问于2016-02-03
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券