c# - Silverlight DataGrid validation show validation error for all objects|properties -


i have observablecollection<t> t: inotifydataerrorinfo.

objects in collection have validation errors, bind collection silverlight 4 datagrid, there way show validation error in datagrid? (show red cell invalid properties each object). default datagrid show validation error when begin edit row, , active row.

i haven't succeeded textblock control, used disabled textbox can change template of textbox, mean remove border , set background transparent.

multi row validatione

<sdk:datagrid autogeneratecolumns="false" itemssource="{binding items}" isreadonly="false" selectionmode="single">     <sdk:datagrid.columns>         <sdk:datagridtextcolumn header="title" binding="{binding title}"/>         <sdk:datagridtemplatecolumn header="link" width="100">             <sdk:datagridtemplatecolumn.celltemplate>                 <datatemplate>                     <textbox text="{binding link, mode=twoway}" margin="2"                               isenabled="false" borderthickness="0" background="transparent"/>                 </datatemplate>             </sdk:datagridtemplatecolumn.celltemplate>             <sdk:datagridtemplatecolumn.celleditingtemplate>                 <datatemplate>                     <textbox text="{binding link, mode=twoway}" margin="2"/>                 </datatemplate>             </sdk:datagridtemplatecolumn.celleditingtemplate>         </sdk:datagridtemplatecolumn>     </sdk:datagrid.columns> </sdk:datagrid> 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -