Preventing DataGridView column from auto-resizing when double-clicking the column header divider
-
Hi all, I have a DataGridView where the user can change the columns widths (by dragging the column header divider). However, I'd like to disable the functionality that double-clicking the column header divider auto-resizes the column with. I tried using the ColumnDividerDoubleClick event to handle this event manually, but the column width still automatically resizes. Ideas? Thanks! Eyal.
-
Hi all, I have a DataGridView where the user can change the columns widths (by dragging the column header divider). However, I'd like to disable the functionality that double-clicking the column header divider auto-resizes the column with. I tried using the ColumnDividerDoubleClick event to handle this event manually, but the column width still automatically resizes. Ideas? Thanks! Eyal.
-
It is a Sunday, so most of Europe is not at work. It is also sunny and hot in the UK, so most people are out in the fresh air, warming and drying out after a long cold winter. Some are trying to work out what that big, hot, yellow thing up there is, since we haven't seen it for a couple of years... Normal service will resume tomorrow. Probably. If the warm weather doesn't encourage too much beer drinking, with resulting spontaneous-Monday-morning-illness problems. It might.
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
-
Hi all, I have a DataGridView where the user can change the columns widths (by dragging the column header divider). However, I'd like to disable the functionality that double-clicking the column header divider auto-resizes the column with. I tried using the ColumnDividerDoubleClick event to handle this event manually, but the column width still automatically resizes. Ideas? Thanks! Eyal.