Lets say I have multiple DataGrids throughout my winform app and I want to set the BackColor on ALL of them to Purple in Visual Studio.
What is the fastest way of setting a Property for multiple items NOT located on the same Form?
Thanks!
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.
Since you’re asking about changing this at design time and not runtime, I would do a search on your whole solution for “new DataGrid” and change them in the designer.cs (or designer.vb) files. Other than that, I can’t think of a quicker way other than maybe writing some sort of macro.