DataGrid

  • Thread starter Thread starter nkingcade
  • Start date Start date
N

nkingcade

Question:

I am attempting to display database information in a datagrid control.
When I use the datagrid control in the Windows Forms area, the "data
source" and data member properties are not native to the control. I
believe they should be? However, they can be found in the "advanced"
area in the control properties. I add them from there, select the data
set. The problem is that the required action is to select the data set,
I am only able to select a column from the dataset. So, here is the
question:

1. Is this the correct control for displaying the data?

2. Am I configuring the control properly?

I am using Visual Studio Enterprise Architect 2003.


Can someone help. Thanks

Neal
 
nkingcade,

You are what we call probably using the designer to set the properties.

(I write this because there is as well another suspect about properties, for
what I first was thinking).

If you set the datasource of the datagrid in that, than you can click again
on the plus. Than you can select the datatable, this action is the same as
setting the datatable as the datamember.

I hope this gives an idea.

Cor
 
Cor,

After looking around a bit, I think(Know) I solved the problem. Don't
set the property in the DataBind area. Set in the native control
property area. The indication I received from the book I was using
indicated the Databind area. Thanks for your help. It made me curious.

Neal
 
Back
Top