I am working on a Windows Forms project that uses Telerik RadControls, including the RadGridView
. The control in question automatically creates a RadGridView
instance named MasterTemplate
as a class member, as well as the one I named, due to the way it works internally.
This causes Visual Studio to give me a "The field [...] is never used" warning for each RadGridView
in the entire project, of which there are many.
- Editing the
.designer.cs
file is pointless as it would be edited by the designer itself. - While it may be possible to suppress all warnings of this type, I don't want to do so because it would also hide warnings about fields that I created.
- Leaving the warnings there is unnecessarily cluttering the Error List window, so I have to hide all warnings if I want to see only the errors. I then re-enable the display of the warnings and have to read the list carefully to see if there are any "legitimate" warnings in it.
Is it in any way possible to tell Visual Studio to "never bother me with this warning about this variable again, but do keep telling me about other warnings"?