社区
C#
帖子详情
datagrid(row+1,0)这是什么意思
上帝的亲哥哥
2007-12-05 07:50:05
这两行代码是什么意思:第二行的返回值是什么?
int row =this.DataGrid1.CurrentCell.RowNumber;
this.DataGrid1.CurrentCell= new DataGridCell(row+1,0);
if(
谢谢了……
...全文
74
1
打赏
收藏
datagrid(row+1,0)这是什么意思
这两行代码是什么意思:第二行的返回值是什么? int row =this.DataGrid1.CurrentCell.RowNumber; this.DataGrid1.CurrentCell= new DataGridCell(row+1,0); if( 谢谢了……
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
fino_wang
2008-01-22
打赏
举报
回复
设置更新后光标所在的单元格
wpf
DataGrid
自定义样式!
这通常通过 `<Style TargetType="
DataGrid
Row
">` 来完成。你可以改变行的背景色、字体、鼠标悬停效果等。例如,你可以定义 `
DataGrid
Row
` 的模板,包含 `
DataGrid
CellsPresenter` 和 `
DataGrid
DetailsPresenter`,来...
WPF 获得
DataGrid
Row
和
DataGrid
Cell的方法
原文地址简介 在WPF中,
DataGrid
控件并没有提供访问其
DataGrid
Row
或者
DataGrid
Cell的方法。 因此我们需要自己来编写获取的方法,这其中主要用到了ItemsControl类的一个实例方法:ItemContainerGenerator。实现...
Easyui
DataGrid
row
的相关操作
Easyui
DataGrid
row
的相关操作 1、获取
datagrid
选中行(单行选中) 2、获取
datagrid
选中行(多行选中) 3、获取当前行索引 4、根据索引删除当前行 5、快速清空
DataGrid
6、根据行索引更新行数据 7、新增一行数据
wpf 获得
DataGrid
Row
和
DataGrid
Cell的方法
using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Media; namespace Splash.WPF { public static class ... /// 获取
DataGrid
控件单元格 /// </summary>
wpf 得到
datagrid
的
row
DataGrid
Row
row
= (
DataGrid
Row
)
dataGrid
1.ItemContainerGenerator.ContainerFromIndex(index);
C#
111,112
社区成员
642,554
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章