DataGrid控件可是实现数据的定位导航功能。。代码如下
CurrencyManager cmAmend = (CurrencyManager)BingdingContext(TableName);
this.datagrid.UnSelect(cmAmend.Postition);
cmAmend.Postition = 0;
this.datagrid.Select(cmAmend.Postition); //选中指定行
this.datagrid.CurrentRowIndex = cmAmend.Postiton;//移动表头指针图标小虾请问各位大哥 用DataGridView怎么实现呢?
CurrencyManager cmAmend = (CurrencyManager)BingdingContext(TableName);
this.datagrid.UnSelect(cmAmend.Postition);
cmAmend.Postition = 0;
this.datagrid.Select(cmAmend.Postition); //选中指定行
this.datagrid.CurrentRowIndex = cmAmend.Postiton;//移动表头指针图标小虾请问各位大哥 用DataGridView怎么实现呢?
解决方案 »
- 海康 板块 怎么获取原始图像数据流
- winform调用webservice中文乱码
- 请教System.Web.Hosting 作HTTP服务的教程或例子。200分
- 如何压缩与解压缩多级目录?
- Page Header or footer longer than a page 这个报表难题如何解决?
- 文件正在传输中,如果发送方断开,那么接收方如何处理?
- 为什么我的界面会有一大片空白?
- 请问有winform下的web编辑器控件吗?
- 请教Asp.net如何写log
- 奇怪的编译结果,请各位大虾帮小弟看看。不胜感激
- 请教怎样使点击fileUpload控件的浏览按钮打开一个图片,imagebutton的imageurl就定位到该图片
- 请问怎样弹出模式对话框并在里面放一个progressbar以显示工作进度?
http://www.cnblogs.com/califord/category/76812.html
有关于DG的很多用法了,你可以看看
DataGridViewRow dgr = dataGridView.Rows[intInputRow];
呵呵 顶!相信一定能找到答案