原创 點擊 datagridview header 發生崩潰

http://stackoverflow.com/questions/20502401/c-sharp-datagridview-header 添加這句即可。 if (e.RowIndex != -1)