Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I found solution
It was issue of WPFToolkit version
I just update version and problem solve

Thanks for reading my question

if I set Grid's SelectioMode Property to Single and set Width property of all columns then header is not look proper. Height of each header column is changed to very small say approx 10 pixel.

if I remove Width property of column which having highest Width then it looks OK

My code is
<dg:datagrid name="GridControl" itemssource="{Binding ElementName=WindowPartyMaster1, Path=PartyMasterTable}" xmlns:dg="#unknown">
                 IsReadOnly="True" AutoGenerateColumns="False"  GridLinesVisibility="Vertical" SelectionMode="Single" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserResizeRows="False" SelectionChanged="GridControl_SelectionChanged" FontFamily="Verdana">
                    <dg:datagridtextcolumn binding="{Binding CompanyId}" header="Company Id" width="60" />
                    <dg:datagridtextcolumn binding="{Binding CompanyName}" header="Company Name" width="200" />

Anybody face issue like this ?

if you don't understand because of my English, please comment
Thanks in advance

Updated 5-Jan-11 19:45pm

1 solution

Maybe you could try setting a margin on each of the column headers.
Share this answer
Khaniya 27-Dec-10 0:55am    
No it is not done by setting margines

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900