|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGrid header questionI 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 will this work?
set the database name to " " craig via DotNetMonster.com wrote: Show quoteHide quote > 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 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
Other interesting topics
Looping through Enum on Page_Load
"Transparently" printing a word document GAC and Source Safe Same function different signatures GridView: conditional editing ValidateRequest customization "Can't use parentheses when calling a Sub" help...... FormView and FileUpload JavaScript not working. Profiles |
|||||||||||||||||||||||