How do you put vertical lines in between DataGrid Headers in C# WPF -


i have datagrid, i'm trying put vertical lines in headers - datagrid has feature put vertical , horizontal gridlines in.. how in world can put gridlines separate headers? right have

<datagrid.resources>                     <style targettype="{x:type datagridcolumnheader}">                     <setter property="background" value="lightblue" />                     <setter property="fontweight" value="bold" />                     <setter property="fontsize" value="18" />                     <setter property="fontfamily" value="calibri" />                 </style>             </datagrid.resources> 

datagridcolumnheader buttonbase, can style borderthickness , borderbrush achieve want, may want header center, need set horizontalcontentalignment:

<datagrid.resources>       <style targettype="{x:type datagridcolumnheader}">         <setter property="background" value="lightblue" />         <setter property="fontweight" value="bold" />         <setter property="fontsize" value="18" />                             <setter property="fontfamily" value="calibri" />                              <setter property="horizontalcontentalignment" value="center"/>          <setter property="borderthickness" value="0,0,1,0"></setter>         <setter property="borderbrush" value="black"/>      </style> </datagrid.resources> 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -