Hi,
I previously asked this question and was given the answer below that works fine, thanks. Now I am binding a typed list to a Janus grid and need to know which row has been selected. The same approach doesn't work, I assume because the typed list is not a collection of entity objects.
How would I get the selected row from the grid?
Thanks.
RobBa wrote:
This is probably a really dumb question
Self Servicing & VB .NET Windows Forms.
I have an entity - Reservation with a child collection BookingDetail. The collection is bound to a Janus grid, with just the FirstName & LastName columns visible. How can I find out what the BookingDetailId is of the selected row?
Hi,
Try the following:
-
Get the BookingDetail's currencyManager:
cm = gridEX.BindingContext(BookingDetail)
-
Get the current selected BookingDetail using the cm.position:
selectedBookingdetail = BookingDetail(cm.position)
-
Now that you have the selected BookingDetail you can get any property.