473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

remove header in detailsview

Hello everybody,
I have in a VWD-Project several sqldatasource- controls and I bind them
during runtime with
DetailsView:
SqlDataSource2.SelectCommand = "select field1 from Tab1 where id= " & 4
DetailsView1.DataSourceID = SqlDataSource2.ID
This works. Now I would like to remove the header of DetailsView with:
DetailsView1.Fields(0).ShowHeader = False
It does not work. How to remove the header?
Thank you!
Mario
Jun 23 '06 #1
2 2246
Try removing the header before you populate it with data.

Regards

Jared
Mario Krsnic wrote:
Hello everybody,
I have in a VWD-Project several sqldatasource- controls and I bind them
during runtime with
DetailsView:
SqlDataSource2.SelectCommand = "select field1 from Tab1 where id= " & 4
DetailsView1.DataSourceID = SqlDataSource2.ID
This works. Now I would like to remove the header of DetailsView with:
DetailsView1.Fields(0).ShowHeader = False
It does not work. How to remove the header?
Thank you!
Mario


Jun 23 '06 #2
Try removing the header before you populate it with data.

Regards

Jared
Mario Krsnic wrote:
Hello everybody,
I have in a VWD-Project several sqldatasource- controls and I bind them
during runtime with
DetailsView:
SqlDataSource2.SelectCommand = "select field1 from Tab1 where id= " & 4
DetailsView1.DataSourceID = SqlDataSource2.ID
This works. Now I would like to remove the header of DetailsView with:
DetailsView1.Fields(0).ShowHeader = False
It does not work. How to remove the header?
Thank you!
Mario


Jun 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shawn Wildermuth | last post by:
I have a *single* SqlDataSource that loads up a single result set that I show in a GridView. In the GridView, i've added a "Select" button and handling the SelectedItem event. I also have a...
2
by: Andrew Robinson | last post by:
Is there any way to accomplish two way data binding in a Details View with a DataSet or DataTable as the DataSource. All I want is to get an updated DataSet or DataTable back from the...
12
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
1
by: sck10 | last post by:
Hello, I am trying to change a value when a user goes into edit mode on a DetailsView control. I am trying to use the following, but can not figure out how to get to the bound field...
4
by: Frits van Soldt | last post by:
Hello, I hope somebody can help me with this! I have 2 listboxes in the edititemtemplate of a detailsview. In the databound event of the detailsview I would like to fill the listboxes...
3
by: chrisn | last post by:
Hi, (Using ASP.Net 2.0) I have a wizard control inside a detailsview control. When I attempt to call the InsertItem method on the DetailsView I get an error "ObjectDataSource...
0
by: Jason Huang | last post by:
Hi, In my ASPNet 2.0 C# web form's DetailsView, how do I manually assign the Header's width? Thanks for help. Jason
1
by: needhelp1 | last post by:
I have gridview with a detailsview below. When I click on 'New' in brings up the DetailsView for inserting. When I click on 'Edit' in does not brink up the DetailsView. What am I doing wrong? I...
5
by: =?Utf-8?B?bXBhaW5l?= | last post by:
Hello, I am completely lost as to why I can't update a DropDownList inside a DetailsView after I perform an insert into an object datasource. I tried to simply it down to the core demostration:...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.