Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
Problem with two star fields and resizing
posted

Hi,

There is a bug/problem with resizing columns in XamDataGrid. When you have two star fields and atleast one normal field and then start the application. Resize the normal column to take all space. The star columns will take no space. They will also not be able to resize anymore... Now you might think, who does this? This was the smallest reproduction of this problem I could find. Let me explain.

I have about 10-15 fields in my XamDataGrid. Two of them are star fields. When I start my application it will have to fit all of these columns into my application Window. Some of them are wider than others. If I resize one of the normal columns by even the slightest pixel... the column will resize to 0 width and be unuseable. 

Reproduction in WPF Samples Browser 2014.2:

- Start WPF Samples Browser 2014.2.

- Go to: xamDataGrid -> Display -> AutoFit Fields.

- In the options box select Use '*' sizing for CustomerID and CompanyName.

- Als select OnlyWithVisibleStarFields in the AutoFitMode dropdown.

- Click and hold the leftside resize thumb of the ContactName column and drag it to the right. Keep dragging untill the CustomerID column is gone.

- Now do the same with the rightside of the ContactName column. Keep dragging untill the CompanyName column is gone.

- Try to resize the Customer or CompanyName columns... impossible.

Is there any way to fix this? It's been happening since the first version of xamDataGrid that i've used and it's still in the latest version. 

Parents Reply Children
No Data