C# 我想在右键单击grid view时启用gridview删除。这在web应用程序中是如何实现的?
我有gridview,它填充了数据。要在鼠标右键单击事件中启用“删除”按钮。这是如何实现的?请帮助我?尝试此操作C# 我想在右键单击grid view时启用gridview删除。这在web应用程序中是如何实现的?,c#,asp.net,C#,Asp.net,我有gridview,它填充了数据。要在鼠标右键单击事件中启用“删除”按钮。这是如何实现的?请帮助我?尝试此操作 this.GridView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.GridView_MouseDown); private void GridView_MouseDown(object sender, MouseEventArgs e) { if(e.Button == MouseButt
this.GridView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.GridView_MouseDown);
private void GridView_MouseDown(object sender, MouseEventArgs e)
{
if(e.Button == MouseButtons.Right)
{
//code to enable a button
}
}