Hello, I'm developing an addin for sql server management studio 2014 using c# and the visual studio sdk. I'm trying to return an instance of the DisplayResultsUserControl which is the bottom half of the sql query results splitter, to read from the results grid. I've looked here for reference, but I can't find a way to get an instance of this control using servicecache or or the scriptfactory class. http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.ui.vsintegration.editors.sqlscripteditorcontrol.displayresultsusercontrol.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
I imported the SQLEditors assembly in my project, and it does allow me to call Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl, which looks like it is the current instance of the control, but it doesn't list the DisplayResultsUserControl, which may be because it's a protected class in this object. My question is: Am I heading in the right direction towards accessing the results grid or should I take another approach? Any help is much appreciated!
Thanks