Dim products As New ProductEntity(CInt(txtProductID.Text.ToString))
TextBox1.Text = products.ProductId
'no problem with this
'why is it that i can't bind products entity to the grid control with the code below?
OrderLinesDataGridView.DataSource = products
'pls. help
the code above is just for one record right? how do i bind an entire table to a bound control like a grid? if it's possible what if there are new records added to the grid, how can it be saved on the entity?
'for a textbox
dim orders as new OrderEntity()
orders.productid=textbox1.text
'for a grid
???????
advance tnx for the help.