If you want the width of the DataGrid to change, set width of all columns in 
pixels, and use setWidth() on your DataGrid after each change.

If you want the width to be constant (a better option from the UI perspective, 
in my opinion), set the width of your DataGrid once and set width of at least 
one column in percentages. After you add or remove columns DataGrid will 
automatically resize columns to fit its width.

Minimum width setting is useful when you set width of your DataGrid as a 
percentage of its parent widget or add it to a layer of a resizable panel. When 
a browser window (or other content) forces DataGrid to change its size, it will 
automatically resize its columns until it hits the minimum width, at which 
point a horizontal scrollbar will appear and columns will not be resized 
anymore.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Gd0NmY4Cm94J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to