Cell or coloumn span

2 posts, 0 answers
  1. selva
    selva avatar
    3 posts
    Member since:
    Sep 2010

    Posted 09 Oct 2010 Link to this post

    Hi ,

         Good morning, Here i am used radgridview for display name,phone,address and so on. Now i need cell or coloumn span for particular cells or coloumns. Please kindly inform me.

     Its very urgent

  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 10 Oct 2010 Link to this post


    There are two ways to perform this type of functionality with column headers. The first is 
    Column Group View. This allows you to group columns with a common header. 
    See the following links

    An example would be to load in your data, then 
    ' Me.ColumnGroupsViewDefinition() is your own method to return a View Definition
    Me.GridView.ViewDefinition = Me.ColumnGroupsViewDefinition()

    Private Function ColumnGroupsViewDefinition() As ColumnGroupsViewDefinition
        Dim columnGroupsView As ColumnGroupsViewDefinition
        Dim columnGroupRowSample1 As GridViewColumnGroupRow
        Dim columnGroupRowSample2 As GridViewColumnGroupRow
        Dim columnGroupRowSample3 As GridViewColumnGroupRow
        Dim columnGroupSample1 As GridViewColumnGroup
        Dim columnGroupSample2 As GridViewColumnGroup
        Dim columnGroupSample3 As GridViewColumnGroup
        columnGroupRowSample1 = New GridViewColumnGroupRow()
        With columnGroupRowSample1.Columns
        End With
        columnGroupRowSample2 = New GridViewColumnGroupRow()
        With columnGroupRowSample2.Columns
        End With
        columnGroupRowSample3 = New GridViewColumnGroupRow()
        With columnGroupRowSample3.Columns
        End With
        columnGroupSample1 = New GridViewColumnGroup("Sample1")
        columnGroupSample2 = New GridViewColumnGroup("Sample2")
        columnGroupSample3 = New GridViewColumnGroup("Sample3")
        columnGroupsView = New ColumnGroupsViewDefinition()
        Return columnGroupsView
    End Function

    The other way is to use HTML Views. You can find out more about HTML Views in this documentation

    hope that helps
Back to Top