![]() |
|
|
|
#1 |
|
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 -- Message posted via http://www.dotnetmonster.com craig via DotNetMonster.com |
|
|
|
|
#2 |
|
Posts: n/a
|
will this work?
set the database name to " " craig via DotNetMonster.com wrote: > 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 > > -- > Message posted via http://www.dotnetmonster.com rjl444 |
|
|
|
#3 |
|
Posts: n/a
|
I mean datasetName
rjl444 |
|
|
|
#4 |
|
Posts: n/a
|
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 -- Message posted via http://www.dotnetmonster.com craig via DotNetMonster.com |
|
|
|
#5 |
|
Posts: n/a
|
no idea. sorry.
rjl444 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Loading 24,000 rows into C# .net Datagrid | Kagu | Software | 0 | 03-10-2009 06:51 PM |
| Re: Dial-up Modem Question | w_tom | A+ Certification | 0 | 09-18-2005 09:12 PM |
| "Installing two drives" question - what next? | Jim | A+ Certification | 12 | 08-07-2005 01:19 PM |
| Re: Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good | God | DVD Video | 3 | 04-25-2005 04:19 PM |
| Re: Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good | Filthy Mcnasty | DVD Video | 0 | 04-25-2005 04:29 AM |