Results 1 to 4 of 4

Thread: [RESOLVED] data bindings and ADO.NET2.0 datasets

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    Resolved [RESOLVED] data bindings and ADO.NET2.0 datasets

    I have a dataset i want to bind to a datagridview; however, I want to not display certain fields. My dataset would have something like "Name", "Date" and "Address" columns, but I only want to display the name and address columns in my datagridview. Will this mean I have to manually set my columns in the datagridview or can I still do the sweet properry calls of datasource = myDS and datamember = myDS.Tables("People")?


    Thanks,
    Taco

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: data bindings and ADO.NET2.0 datasets

    Manually set columns in the datagridview or dataview object.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    Re: data bindings and ADO.NET2.0 datasets

    So I need to add the columns at design-time, then I can still datasource to the DS and datamember to the table?

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: data bindings and ADO.NET2.0 datasets

    You should be able to set the visibility of columns at run time....

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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