更新时间:2021-10-15 03:28:41
在你说的按钮的 Click 事件处理程序中:
In the Click event handler for the button you say:
int row;
Button btn = sender as Button;
if (btn != null)
{
row = Grid.GetRow(btn); // And you have the row number...
}
else
{
// A nasty error occurred...
}