Are there any method to disable the RowHeader and ColumnHeader from being clicked or selected or mouseClick or mouseHover. Im looking for:
dgv.RowHeader.Enable = false;//disable rowheader
or
dgv.RowHeaderClick += dgv_RowHeaderClick;
private void dgv_RowHeaderClick(object sender, EventArgs e)
{
DataGridView dgv = (sender as DataGridView);
dgv.RowHeaderClick -= dgv_RowHeaderClick;
}
This is an annoying property of DataGridView
when a user click on headers, it will highlight and turn blue. Also exception throw sometimes when clicking the cells of headers.