I am writing my own resize code based on discussions in some other threads. I am using the code from one of the examples that looks through each row and gets the column value and then uses MeasureString to determine the correct string width.
This is working well for all but my combobox columns. The value of those columns is the Id (like 35) instead of the display value (like "Acme Inc"). So the size of the column is not being set appropriately.
How do I get the actual displayed value, not the bound value for the column?
Thanks!
This is working well for all but my combobox columns. The value of those columns is the Id (like 35) instead of the display value (like "Acme Inc"). So the size of the column is not being set appropriately.
How do I get the actual displayed value, not the bound value for the column?
Thanks!