我有一个网格,它在特定列上显示一些数据分组。我想显示存储在 DB 中的图像,该图像对应于 WPF 中的标题列。可能吗?
请参考附件:
<dxg:GridControl Name="grdInfill" Height="700" VerticalAlignment="Top">
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="GlassType" AllowEditing="False"/>
<dxg:GridColumn FieldName="GlassDescription" AllowEditing="False"/>
<dxg:GridColumn FieldName="GlassType" AllowEditing="False"/>
<dxg:GridColumn FieldName="Quantity" AllowEditing="False" />
<dxg:GridColumn FieldName="Width" AllowEditing="False" Header="Length"/>
<dxg:GridColumn FieldName="Height" AllowEditing="False"/>
<dxg:GridColumn FieldName="Elevation" AllowEditing="False"/>
<dxg:GridColumn FieldName="Mark" AllowEditing="False"/>
<dxg:GridColumn FieldName="GlassTag" AllowEditing="False"/>
<dxg:GridColumn FieldName="WallLocation" AllowEditing="False"/>
<dxg:GridColumn FieldName="SquareFoot" AllowEditing="False"/>
<dxg:GridColumn FieldName="Weight" AllowEditing="False"/>
<dxg:GridColumn FieldName="UnitCost" AllowEditing="False"/>
<dxg:GridColumn FieldName="TotalCost" AllowEditing="False"/>
<dxg:GridColumn FieldName="FuelSurcharge" AllowEditing="False"/>
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView ShowTotalSummary="True" AutoWidth="True" DetailHeaderContent="True" ShowGroupPanel="False" ShowIndicator="False"/>
</dxg:GridControl.View>
</dxg:GridControl>
protected void GetAllInfills()
{
List<Infill> infillList = new List<Infill>();
infillList=BLL.GetAllInfills();
if (infillList != null)
{
grdInfill.ItemsSource = infillList;
grdInfill.GroupBy(grdInfill.Columns["GlassType"], ColumnSortOrder.Ascending);
grdInfill.GroupBy(grdInfill.Columns["GlassDescription"], ColumnSortOrder.Ascending);
grdInfill.AutoExpandAllGroups = true;
}
}
我需要在 WPF Grid 的标题部分显示图像,如带有多行文本的黑色图像所示
帮助表示赞赏!
谢谢!