i newbie in devexpress , wpf, need make grid bands. illustrate 2 pict: 1st - i've done, 2nd - have do, don't know how. pay attention first column
here code of first pict grid:
<window xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" x:class="dbexpresstest.mainview" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:dbexpresstest" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" mc:ignorable="d" title="mainview" height="350" width="800"> <window.datacontext> <local:mainviewmodel/> </window.datacontext> <grid> <dxg:gridcontrol itemssource="{binding path=cars}" autogeneratecolumns="addnew" enablesmartcolumnsgeneration="true"> <dxg:gridcontrol.bands> <dxg:gridcontrolband> <dxg:gridcolumn header="new column"></dxg:gridcolumn> </dxg:gridcontrolband> <dxg:gridcontrolband header="cars" horizontalheadercontentalignment="center"> <dxg:gridcolumn fieldname="name" header="name"/> <dxg:gridcolumn fieldname="year" header="year"/> <dxg:gridcolumn fieldname="type" header="type"/> </dxg:gridcontrolband> <dxg:gridcontrolband> <dxg:gridcolumn fieldname="owner" header="owner"></dxg:gridcolumn> </dxg:gridcontrolband> </dxg:gridcontrol.bands> <dxg:gridcontrol.view> <dxg:tableview allowperpixelscrolling="true" showtotalsummary="true"/> </dxg:gridcontrol.view> </dxg:gridcontrol> </grid>
i found solution..... add "showcolumnheaders" table view "false" value!
... <dxg:gridcontrol.view> <dxg:tableview allowperpixelscrolling="true" showtotalsummary="true" showcolumnheaders="false"/> </dxg:gridcontrol.view> ....
Comments
Post a Comment