Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2005, 06:44 AM
Registered User
 
Join Date: Oct 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Displaying SQLServer data to user

Hey everyone,

I have created a user login module and i want the user info to be displayed when he chooses to. I used SqlDataAdapter and data source as follows:
DataSet ds = new DataSet();
myCommand.Fill(ds);

DataView source = new DataView(ds.Tables[0]);
MyDataGrid.DataSource = source ;
MyDataGrid.DataBind();

the code works fine and it displays the users info correctly however i was wondering if there is a way to hide the first row that by default displays containing the database fields (name of fields) or at least if there is a way to edit those (just for display).

thanks
Susan

 
Old October 28th, 2005, 01:05 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Set the showheader property of the datagrid to FALSE.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying as it is from sqlserver(paragraph) harshaghanta ASP.NET 1.0 and 1.1 Professional 1 July 24th, 2006 09:45 AM
displaying data that is related to the login user saif44 ASP.NET 2.0 Basics 0 March 9th, 2006 12:21 PM
Inserting data into Sqlserver ksrmramu Access ASP 1 July 28th, 2005 03:23 PM
How to write xml data in SqlServer rekha_jsr XML 1 October 21st, 2004 12:22 PM
casting textbox to sqlserver number data type yoord BOOK: Beginning ASP.NET 1.0 1 October 17th, 2004 06:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.