Event for clicking on row headers in DataGridView
问题 What is the event that exclusively handles mouse clicks made only on Row Headers of DataGridView? If there are none, what would be an alternative of handling this type of event? 回答1: Have a new Winforms Project and copy-paste the code below :- public partial class Form1 : Form { public Form1() { var list = new List<Books> { new Books() {Title = "Harry Potter", TotalRating = 5}, new Books() {Title = "C#", TotalRating = 5} }; InitializeComponent(); dataGridView1.AutoGenerateColumns = true;