本文介绍了如何设置单击事件到行中的所有单元格? Gridview Winforms Devexpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有Gridview,我想在一行中的所有单元格上设置click事件?如何完成我的任务?
我试过这段代码但是当我双击单元格时,新表格会出现在当前表格的后面/后面。如何在前面显示它?
I have Gridview and I want to set click Event on the all cells in a Row ? How to Complete my Task ??
I tried this code but when i double click on the cell the new Form will come in Back / Behind of current Form. How to Show it on the Front ?
private void gridView2_DoubleClick(object sender, EventArgs e)
{
GridHitInfo celclick = gridView2.CalcHitInfo(gridControl2.PointToClient(Control.MousePosition));
if (celclick.InRow)
{
}
}
如何完成我的任务?帮助我。
How to complete my task ? Help me.
推荐答案
private void gridView2_RowCellClick(object sender, RowCellClickEventArgs e)
{
// Code
}
使用此事件我可以完成我的任务。
Using this event i can Complete my Task.
这篇关于如何设置单击事件到行中的所有单元格? Gridview Winforms Devexpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!