Re: Reducing Number of Columns When Changing Query
From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 09/25/04
- Next message: Val Mazur: "Re: Update Database from DataAdapter"
- Previous message: William \(Bill\) Vaughn: "Re: I need a good book or two on ADO"
- In reply to: dormy: "Reducing Number of Columns When Changing Query"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 24 Sep 2004 18:49:32 -0700
Clear the DataSet before reusing it.
-- ____________________________________ William (Bill) Vaughn Author, Mentor, Consultant Microsoft MVP www.betav.com Please reply only to the newsgroup so that others can benefit. This posting is provided "AS IS" with no warranties, and confers no rights. __________________________________ "dormy" <dormy@dormys.house.com> wrote in message news:4154797b$1_2@127.0.0.1... >I have a DataGrid that is bound to a .mdb using a DataAdapter and DataSet. >When > I first start the program the grid is filled with data properly. > > I then change the select command and refill the DataSet. The change to the > query is to remove one column that is returned. For example: > before > SELECT a, b, c, d FROM x > after > SELECT a, b, c FROM x > > The proper rows are displayed but I still get a column labeled d. The > column d > has empty data. > > How to I get the grid to stop displaying column d, short of manually > removing > the column. There will be instances where the query is typed in by the > user and > can be sonewhat freeform. > > Thanks >
- Next message: Val Mazur: "Re: Update Database from DataAdapter"
- Previous message: William \(Bill\) Vaughn: "Re: I need a good book or two on ADO"
- In reply to: dormy: "Reducing Number of Columns When Changing Query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|