c# - WPF DataGrid | Hiding Row Validation Column -
i have wpf datagrid has 4 columns, of datagrid template columns. when grid renders there column added automatically on left, understand used displaying row validation errors , it's bound template rowvalidationerrortemplate.
my question is, dont want column displayed, , want hidden. how can set on datagrid?
please note i'm using .net 3.5.
my grid style below:
<style x:key="gridstyle" targettype="{x:type controls:datagrid}"> <setter property="verticalgridlinesbrush" value="#7ba0cd"/> <setter property="horizontalgridlinesbrush" value="#7ba0cd"/> <setter property="alternatingrowbackground" value="#d3dfee"/> <setter property="canuserresizerows" value="false"/> <setter property="canuserreordercolumns" value="false"/> <setter property="canuserresizecolumns" value="false"/> <setter property="canusersortcolumns" value="false"/> <setter property="autogeneratecolumns" value="false"/> </style>
found how this:
<setter property="rowheaderstyle"> <setter.value> <style targettype="primitives:datagridrowheader"> <setter property="background" value="transparent" /> </style> </setter.value> </setter>