DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006

    please tell me how to change

    hello to all

    i am using VSWD 2005 asp.net

    here i am using datagrid . i dont want see the database column names on the top of it . only data should be displayed ..

    how to make it please tell me



  2. #2
    Join Date
    Jun 2006
    Hello every one!
    I happaned same thing!
    Please help us!

  3. #3
    Join Date
    Jun 2006

    eddi i will try this tonight , it might help you also try it out...

    This is one of the most frequently asked question by developers who are using DataGrid control for displaying data. A lot of experts have suggested different approaches. So we decided to do alittle research on this. And to our surprise, the solution could not have been that simple.

    The key to the solution is capturing ItemDataBound event. When the page recieves this event, complete information about the data row is available in DataGridItemEventArgs parameter of the event handler. Item property of this parameter contains information about the table rows and cells that will get rendered on the page. This is where you can take of the cells that you want to or do not wantt o show. The only caveat is that you should know the index of the column that you want to remove. The following code snippet shows how you can get rid of first column from the grid.

    private void OnDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)

  4. #4
    Join Date
    Jun 2006
    U Can hide the Header of the Grid na? Else when write ur query use the AS key word from SQL Server like,

    Select FName as [], LName as [] from Tablename

Similar Threads

  1. change the date in the file.
    By vino in forum VB Classic
    Replies: 0
    Last Post: 03-01-2006, 07:48 PM
  2. How to change COM port number
    By quantum1976 in forum VB Classic
    Replies: 1
    Last Post: 02-17-2006, 10:29 AM
  3. How to generate Make Files?
    By aMax in forum Java
    Replies: 2
    Last Post: 08-04-2000, 05:55 PM
  4. Replies: 6
    Last Post: 03-25-2000, 12:29 PM
  5. Replies: 0
    Last Post: 03-23-2000, 01:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

By using this site, you agree to the Privacy Policy