[Mono-winforms-list] DataGridView setting column width problem

sa5webber sa5webber at yahoo.com
Sat Mar 24 16:36:08 UTC 2012

Thanks for the response and offer. Fortunately I found a work around although
I might still take you up on your offer later. At the moment I'm on a
deadline and I need to just get this stuff working.

It turns out the bug wasn't quite as bad as I thought. I had set
AutoGenerateColumns = true, let my datatable populate the datagrid and then
resize the columns as shown in my previous post. As I said in my previous
post this works fine in MS.net but not in mono. Mono seems to ignore the
resize when AutoGenerateColumns = true.

The solution was to set AutoGenerateColumns = false. Create the columns
myself and set the DataPropertyName = field in my datatable.

View this message in context: http://mono.1490590.n4.nabble.com/DataGridView-setting-column-width-problem-tp4491058p4501660.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

More information about the Mono-winforms-list mailing list