DataGrid header question

  • Thread starter craig via DotNetMonster.com
  • Start date
C

craig via DotNetMonster.com

I have created many screens which all have a DataGrid and a set of buttons.
I decided to attempt to create a user control which would contail a DataGrid
and this set of buttons. However, the DataGrid functions dirrerently in the
user control then when I put the DataGrid directly on the form.

In both cases the dataset contains only one table. When the DataGrid is
directly on the form it imediately shows the data. But when I use the user
control it appears blank with a + sign. When you click on the + sign it then
shows the table name. When you click on the table name you then get the data.


I've gotten around those two problems by adding
Me.uCtrl.DataGrid.Expand(-1)
Me.uCtrl.DataGrid.NavigateTo(0, "ServObj")

However, I'm getting a header of "NewDataSet:" which is comming from me.uCtrl.
uDataSet.tables(0).dataset.datasetname

I don't get this header when the DataGrid is directly on the form and I don't
want it!! How the heck do I kill it?

Thanks,
Craig
 
C

craig via DotNetMonster.com

I suspose it might, but I don't see why I should need to do this.
When I check the datasetname for the dataset bound to the DataGrid that is
placed directly on the form, it also has a datasetname of "NewDataSet". So,
the problem isn't that the dataset has this name, but why does one datagrid
give me the data and no header, but the other, that is in a user control,
initially display in this tree type view and when I expand it shows this
darned header???

Craig
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top