日期:2014-05-20  浏览次数:21209 次

请问:e.col与e.row 的含义
C# code

 if (e.Row > 2)
                    {
                        intPrevCol = 3 + Int32.Parse(grid1.Cell(e.Row - 1, 2).Text.Substring(0, 1));
                    }
                    if (e.Row <= 100)
                    {
                        intNextCol = 3 + Int32.Parse(grid1.Cell(e.Row + 1, 2).Text.Substring(0, 1));
                    }



C# code

if (e.Col >= 23)
                {
}



这里的e.row、e.col代表什么呢?

------解决方案--------------------
row, column
行,列

……
------解决方案--------------------
e,看上去是事件处理函数收到的参数。
------解决方案--------------------
e,为事件处理函数收到的参数。
e.row e.col 
则为这个对象e的行 列的意思
------解决方案--------------------
msdn里有详细解释。
如果想问,至少贴个e的定义吧。