N
nate axtell
I have a custom class with a Private DataTable member and a Public Property
that returns this DataTable in its Get call. Is the DataTable that is
returned from the Property's Get a reference to the class's Datatable?
I'm binding a DataGrid in my form as follows, but adding a row with the
bo.AddRow() method does not update what is in the DataGrid. Any
suggestions?
[Start Form]
Private bo as CustomBusinessClass
FormLoad()
bo = New CustomBusinessClass()
bo.initListing() '-- initializes datatable
FormGrid.SetBindings(bo.Listing, "")
End FormLoad()
ButtonClick()
bo.AddRow()
End ButtonClick
[End Form]
Public Class CustomBusinessClass
Private _listing as DataTable
Public ReadOnly Property Listing() as DataTable
Get
Return _listing
End Get
End Property
initListing()
...Fill the listing by creating a DataTable manually
end initListing
AddRow()
...Add row to _listing manually
end AddRow
End Class
that returns this DataTable in its Get call. Is the DataTable that is
returned from the Property's Get a reference to the class's Datatable?
I'm binding a DataGrid in my form as follows, but adding a row with the
bo.AddRow() method does not update what is in the DataGrid. Any
suggestions?
[Start Form]
Private bo as CustomBusinessClass
FormLoad()
bo = New CustomBusinessClass()
bo.initListing() '-- initializes datatable
FormGrid.SetBindings(bo.Listing, "")
End FormLoad()
ButtonClick()
bo.AddRow()
End ButtonClick
[End Form]
Public Class CustomBusinessClass
Private _listing as DataTable
Public ReadOnly Property Listing() as DataTable
Get
Return _listing
End Get
End Property
initListing()
...Fill the listing by creating a DataTable manually
end initListing
AddRow()
...Add row to _listing manually
end AddRow
End Class