Hello Infragistics forum,
Could you please let me know where I can find the style related to XamDataGrid Column resizing ?
I have copied the DataPresenterGeneric styles to modify and create my own style, this workes pretty good, except for the resizing of columns are gone.
When I point between two columns the cursor is not changed to SizeWE. And I have searched in all Styles in the WPF > DefaultStyles > DataPresenter but cannot find it.
I might be missing something obvious.
Thanks in advance
Best regards
Nawed
Hello Nawed,
We are glad that the suggestion about the FieldeLayoutsSettings.AutoFit set to OnlyWithVisibleStarFields helped.
Please feel free to contact us if you have other questions.
Hi Zhivko,
Thanks for the answer. That did it.
Thank you for the attached sample application.
The cursor does not show, because you set the XamDataGrid’s Autofit property to true and Field’s width to auto and this way the resizing can't be started. I can suggest you to set theFieldLayoutSettings’s AutoFit property to OnlyWithVisibleStarFields or remove the auto width option for fields, for example:
</gDp:XamDataGrid.FieldLayoutSettings>igDp:FieldLayoutSettings AutoFitMode="OnlyWithVisibleStarFields"/></igDp:XamDataGrid.FieldLayoutSettings>
Let me know if you require any further assistance regarding this matter.
Sincerely, Zhivko Entry Level Software Developer
Hello Zhivko,
Thanks for your reply, The cursor simply doesn't change, but I have attached a sample so you can investigate.
The cursor you have mentioned is set by default to SizeWE mode via the source code of XamDataGrid and I am not sure what can cause such behavior. What is the mode of cursor that you are seeing when point between labels or resize fields with your styles? It will be great if you share simple project that illustrates the changes that you are doing for the DataPresenterGeneric styles. This way I would be able to further investigate this and provide you with more detailed information.
Sincerely, ZhivkoEntry Level Software Developer