Results 1 to 2 of 2

Thread: datagrid column

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2004
    Posts
    11

    datagrid column

    I don't want my identity column to show up in my datagrid. How do I control which columns I want visible and which ones I don't?

  2. #2
    Hyperactive Member
    Join Date
    May 2003
    Posts
    401
    From a site:

    Some developers have reported problems controlling the visibility of columns in the DataGrid control. The problem usually comes down to one fact. The DataGrid has a property called AutoGenerateColumns. The default value is "True". This means that when AutoGenerateColumns is set to True, the DataGrid will pull its column headings straight from the column names of the database table. If you allow this to happen you cannot control the visibility of the columns.

    U can control the columns to be seen or not seen using the following code:

    DataGrid1.Columns(0).Visible=False

    This makes the first column invisible.
    Last edited by apps_tech; May 3rd, 2004 at 03:05 PM.
    Enjoy!!!
    apps_tech

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width