Silverlight怎么屏蔽datagrid按回车自动到下一行这个动作?
请教各位达人,keyupkeydowncelleditingroweditingcelleditedrowedited等事件都试过了if(e.Key==Key.Enter...
请教各位达人,keyup keydown cellediting rowediting celledited rowedited等事件都试过了
if (e.Key == Key.Enter)
{
int _index = dataGrid1.SelectedIndex;
if ((_index != 0) && (_index != 9)) _index--;
dataGrid1.SelectedIndex = _index;
}
这段代码虽然管用,但用户体验太差,请各位高手支招,谢谢! 展开
if (e.Key == Key.Enter)
{
int _index = dataGrid1.SelectedIndex;
if ((_index != 0) && (_index != 9)) _index--;
dataGrid1.SelectedIndex = _index;
}
这段代码虽然管用,但用户体验太差,请各位高手支招,谢谢! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询