Disabling column header in datagridview C# -


i have datagridview 'audit_traildatagridview'. need disable column headers of i.e: nothing should happen when user clicks on column headers.

private void audit_traildatagridview_columnheadermouseclick(object sender, datagridviewcellmouseeventargs e)          {             //do what?           } 

please help.

it undesirable happens because when user clicks on header event raised intended handle situation when user clicks on actual cell, not header (for example, celldoubleclick event). need manually check inside such events cell clicked not header:

 private void datagridview1_celldoubleclick(object sender, datagridviewcelleventargs e)  {      if (e.rowindex >= 0)      {          //do here      }  } 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -