how to access a property of one class ,and to show it in a list made at another form?e.g i have a customer class and i wanna add data to the list made in master form customer form which is accessing the customerclass!!
how to access a property of one class ,and to show it in a list made at another form?
Collapse
X
-
Tags: None
-
For the customer class, override the ToString() method with the information you want available in the List and then add the instance of Customer to the list.
If you need the ability to alter the information, you may also need to create a method to Parse a string inside the customer class which your master form would have to call to update the data. -
Comment