Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はグリッドビューを持っていて、データが取り込まれています。マウスの右クリックイベントで削除ボタンを有効にしたい.どうすれば可能ですか?助けてください?
これを試して
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 } }