N
nalpakj
I'm designing a custom form and I really need the ability to display
data in a grid-type control. The data I'm displaying is not coming
from outlook, but from an external database.
The problem is that I'm not sure how to get access to these controls
from the VS.Net code. It's easy enough to access the Controls
collection of the user form and cast it to controls in the
Microsoft.Office.Interop.Outlook namespace but I seem to get errors
when I try to cast it to other controls (ie: MSFlexGrid) the cast
fails and the return value is null instead of a reference to the
control.
To be clear, I dropped an MSFlexGrid onto a custom form. I then had
code similar to the snippit below in my add-in:
private AxMSFlexGridLib.AxMSFlexGrid flexGrid;
flexGrid = UserForm.Controls.Item("MSFlexGrid1") as
AxMSFlexGridLib.AxMSFlexGrid;
The value of flexGrid is null after those lines execute.
So..questions:
1. Can I use controls other than those in the Microsoft.Office
namespace?
2. Specifically, what grid controls are available to be used?
data in a grid-type control. The data I'm displaying is not coming
from outlook, but from an external database.
The problem is that I'm not sure how to get access to these controls
from the VS.Net code. It's easy enough to access the Controls
collection of the user form and cast it to controls in the
Microsoft.Office.Interop.Outlook namespace but I seem to get errors
when I try to cast it to other controls (ie: MSFlexGrid) the cast
fails and the return value is null instead of a reference to the
control.
To be clear, I dropped an MSFlexGrid onto a custom form. I then had
code similar to the snippit below in my add-in:
private AxMSFlexGridLib.AxMSFlexGrid flexGrid;
flexGrid = UserForm.Controls.Item("MSFlexGrid1") as
AxMSFlexGridLib.AxMSFlexGrid;
The value of flexGrid is null after those lines execute.
So..questions:
1. Can I use controls other than those in the Microsoft.Office
namespace?
2. Specifically, what grid controls are available to be used?