如何创建想要的格式Devexpress Gridview?

时间:2016-04-28 09:28:15

标签: devexpress

enter image description here

我试图让我的gridview看起来像我上传的图片。

2 个答案:

答案 0 :(得分:1)

您可以在gridView中激活AllowCellMerge:

Gridview1.OptionsView.AllowCellMerge = True

并将GridView.CellMerge事件处理为:

 Private Sub Gridview1_CellMerge(ByVal sender As System.Object, ByVal e As DevExpress.XtraGrid.Views.Grid.CellMergeEventArgs) Handles Grid.CellMerge
        If e.Column.FieldName ="Tarih" or e.Column.FieldName <> "Nevi" And e.Column.FieldName <> "BigBag No" Then

            e.Handled = True
            e.Merge = False
        End If
    End Sub

有关移动详细信息,请查看此link

答案 1 :(得分:0)