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

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:datagrid.columns>
                    <dg:datagridtextcolumn binding="{Binding CompanyId}" header="Company Id" width="60" />
                    <dg:datagridtextcolumn binding="{Binding CompanyName}" header="Company Name" width="200" />
                </dg:datagrid.columns>
            </dg:datagrid>

Anybody face issue like this ?

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


:-D
Posted
Updated 5-Jan-11 19:45pm
v2

1 solution

Maybe you could try setting a margin on each of the column headers.
 
Share this answer
 
Comments
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