1
Answer

bind property to selected row from datagridview

Photo of jo

jo

16y
4.8k
1
Hi,

i have a Datagridview that shows a list of customers (List<customer>).
Now i have a property named selectedCustomer.

How can i bind the property to the selected row of my datagridview ?


Answers (1)

0
Photo of jayanand kamble
NA 9 0 16y
Can u please tell what ur selectedCustomer property doing?
Means
1. on clicking perticular cell of the datagrid, it returns value of the customerName column like :-
You Selected CustomerName
or
2. on clicking selecting whole row and returning as it is in other datagrid