谢谢。
解决方案 »
- C#写的程序(绘图)从一台机子拷贝到另外一台机子上不能用?
- 急,急, c#中字符串替换的问题
- ========零零漆 升星帖中 答对SQL语句的 进来接分==============
- 我得到一个Menu怎么得到他的每个菜单item和name
- VS2005中的线程和委托问题,请帮助我吧!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 请问各位,我从网上下的梅花雪写的树,,但是不会用啊
- ASP.NET刷新问题,急!!!
- 高难:有没有办法让下面两种链接都准确接受中文参数?
- 大家请看
- 请问如何在winform里打开excel表格文件,根据输入关键字筛选并添加关键字到表格里
- ****接口的继承!!!**
- remoting架构,高手们进来吧
if(dataGrid1.DataSource!=null)
{
dataGrid1.UnSelect(dataGrid1.CurrentRowIndex);
dataGrid1.CurrentRowIndex=dataGrid1.CurrentRowIndex+1;
//dataGrid1.Select(dataGrid1.CurrentRowIndex);
}
//last one
if(dataGrid1.DataSource!=null)
{
dataGrid1.UnSelect(dataGrid1.CurrentRowIndex);
dataGrid1.CurrentRowIndex=dataGrid1.CurrentRowIndex-1;
}
//first
if(dataGrid1.DataSource!=null)
{
dataGrid1.UnSelect(dataGrid1.CurrentRowIndex);
dataGrid1.CurrentRowIndex=0;
}
//last
if(dataGrid1.DataSource!=null)
{
dataGrid1.UnSelect(dataGrid1.CurrentRowIndex);
int count=dataSet1.Tables[opentable].Rows.Count;
dataGrid1.CurrentRowIndex=count-1;
}
以上代码都是相应事件处理函数中