这三个函数这么有规律,能不能和为一个呢?xiexie! 可以阿private void GridSelect(DataGrid myGrid, int rowIndex){ myGrid.Select( rowIndex );} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还有,你挂事件方法的时候都挂上下面这个函数private void GridTextBoxEnterHandler(object sender, System.EventArgs e){ DataGrid myGrid = (DataGrid)sender; GridSelect(myGrid , myGrid.CurrentRowIndex );} up或者映射到GridSelectprivate void GridSelect(object sender, System.EventArgs e){ctype(sender,datagrid).Select(ctype(sender,datagrid).CurrentRowIndex);} 新手请教:C# 实现访问服务器 httpwebrequest 抓取网页数据返回的是application/vnd.ms-excel格式应该怎么处理? asp.net 会话过期? WinForm程序的安装 求助:C#对WORD文档的问题!! 求解:未将对象引用设置到对象的实例? 请教如何使用C#编写标准COM组件 100分求Excel文件操作资料 高分小问题:C# Class中的一个问题 一个关于数据显示简单问题?请各位帮忙解决一下! dataset数据的删除问题 请各位高手指点一下。关于监听端口数据的
{
DataGrid myGrid = (DataGrid)sender;
GridSelect(myGrid , myGrid.CurrentRowIndex );
}
或者映射到GridSelect
private void GridSelect(object sender, System.EventArgs e)
{
ctype(sender,datagrid).Select(ctype(sender,datagrid).CurrentRowIndex);
}