RadgridView

2 posts, 0 answers
  1. Sieu
    Sieu avatar
    2 posts
    Member since:
    Jun 2007

    Posted 25 Jun 2007 Link to this post

    Hi,

    Normally, in VB.net we can create new rows or columns as following:

    datagridview1.columncount = 3
    datagridview1.rowcount = 4

    how can we do that in Radgridview? 

    Thanks,

  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 26 Jun 2007 Link to this post

    Hello Sieu, this feature is not fully supported in our current release. In next Q2 release will be added unbound/virtual mode and ColumnCount/RowCount properties.

    For now we can offer you the following workaround:

    Public Class DemoSheet 
        Public Sub New(ByVal a As String, ByVal b As String, ByVal c As String) 
            Me.A = a 
            Me.B = b 
            Me.C = c 
        End Sub 
     
        Private m_a As String 
        Public Property A() As String 
            Get 
                Return Me.m_a 
            End Get 
            Set 
                Me.m_a = value 
            End Set 
        End Property 
     
        Private m_b As String 
        Public Property B() As String 
            Get 
                Return Me.m_b 
            End Get 
            Set 
                Me.m_b = value 
            End Set 
        End Property 
     
        Private m_c As String 
        Public Property C() As String 
            Get 
                Return Me.m_c 
            End Get 
            Set 
                Me.m_c = value 
            End Set 
        End Property 
     
    End Class 


    Dim sheet As New BindingList(Of DemoSheet)() 
    For i As Integer = 0 To 3 
     
        sheet.Add(New DemoSheet("", "", "")) 
    Next 
     
    radGridView1.DataSource = sheet 

    Let us know if this solution suites you for now.

    Greetings,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top