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

    Posted 25 Jun 2007 Link to this post


    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? 


  2. Julian Benkov
    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 
                Return Me.m_a 
            End Get 
                Me.m_a = value 
            End Set 
        End Property 
        Private m_b As String 
        Public Property B() As String 
                Return Me.m_b 
            End Get 
                Me.m_b = value 
            End Set 
        End Property 
        Private m_c As String 
        Public Property C() As String 
                Return Me.m_c 
            End Get 
                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("", "", "")) 
    radGridView1.DataSource = sheet 

    Let us know if this solution suites you for now.

    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top