VB, vs2002-window form: how do i set property value of the DataGrid in usercontrl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Momijisouma
    New Member
    • Dec 2007
    • 7

    VB, vs2002-window form: how do i set property value of the DataGrid in usercontrl

    Hi all ,


    My datagrip is in a user control with other elements. Can I noe how do i set the datadrip's value so that i can have access to it later when i use the user control ?

    :: my codes below ::
    + in my user control +
    Private DataGridValue As DataSet

    Property DataGridValue() As DataSet
    Get
    Return DataGrid1.DataS ource
    End Get
    Set(ByVal Value As DataSet)
    DataGridValue = Value
    DataGrid1.DataS ource = DataGridValue
    End Set
    End Property


    + the error message i get when i use the control +

    Code generation for property '' failed. Error was :'Specified is not valid.'



    Thank you in advance
Working...