Is it possible to save two objects in the tag property of a treeview node?
If so, how can I do so
Thanks
bornagaindeveloper
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, but it is possible to write a third class which has two properties pointing to your classes and save this third object to the treenode tag. You could also use the Tuple class that has been introduced in .NET 4.0 if you don’t want to write a third class yourself but I must admit that it could make your code more readable if you did.