Click here to Skip to main content
15,896,359 members
Home / Discussions / C#
   

C#

 
QuestionScroll a window? Pin
Bog14-Nov-02 9:33
Bog14-Nov-02 9:33 
AnswerRe: Scroll a window? Pin
leppie14-Nov-02 10:53
leppie14-Nov-02 10:53 
AnswerRe: Scroll a window? Pin
leppie14-Nov-02 10:57
leppie14-Nov-02 10:57 
GeneralThanks very much nt Pin
Bog14-Nov-02 12:21
Bog14-Nov-02 12:21 
GeneralFile type association Pin
Le centriste14-Nov-02 9:18
Le centriste14-Nov-02 9:18 
GeneralRe: File type association Pin
Kannan Kalyanaraman14-Nov-02 23:35
Kannan Kalyanaraman14-Nov-02 23:35 
GeneralRe: File type association Pin
Andrew Connell15-Nov-02 5:33
Andrew Connell15-Nov-02 5:33 
Questionscreen pixels per inch? Pin
Marc Clifton14-Nov-02 8:50
mvaMarc Clifton14-Nov-02 8:50 
QuestionDoes exist CodePageEncoding class? Pin
Vasek14-Nov-02 7:10
Vasek14-Nov-02 7:10 
AnswerRe: Does exist CodePageEncoding class? Pin
Daniel Turini14-Nov-02 7:31
Daniel Turini14-Nov-02 7:31 
AnswerRe: Does exist CodePageEncoding class? Pin
leppie14-Nov-02 9:21
leppie14-Nov-02 9:21 
Questionexcel??? Pin
Murdang14-Nov-02 6:45
sussMurdang14-Nov-02 6:45 
AnswerRe: excel??? Pin
David Stone14-Nov-02 6:51
sitebuilderDavid Stone14-Nov-02 6:51 
GeneralRe: excel??? Pin
James T. Johnson14-Nov-02 7:00
James T. Johnson14-Nov-02 7:00 
GeneralRe: excel??? Pin
Stephane Rodriguez.14-Nov-02 7:14
Stephane Rodriguez.14-Nov-02 7:14 
GeneralRe: excel??? Pin
Stephane Rodriguez.14-Nov-02 7:13
Stephane Rodriguez.14-Nov-02 7:13 
AnswerRe: excel??? Pin
mikasa14-Nov-02 7:13
mikasa14-Nov-02 7:13 
AnswerRe: excel??? Pin
Kannan Kalyanaraman14-Nov-02 23:23
Kannan Kalyanaraman14-Nov-02 23:23 
GeneralSubClassing a Parent Form in .NET Pin
mikasa14-Nov-02 6:29
mikasa14-Nov-02 6:29 
GeneralRe: SubClassing a Parent Form in .NET Pin
LongRange.Shooter18-Nov-02 9:13
LongRange.Shooter18-Nov-02 9:13 
GeneralRe: SubClassing a Parent Form in .NET Pin
mikasa18-Nov-02 9:17
mikasa18-Nov-02 9:17 
QuestionHow to change header of a ListView? Pin
Delegate14-Nov-02 4:39
Delegate14-Nov-02 4:39 
GeneralDataGrid problem Pin
Christian Graus14-Nov-02 0:12
protectorChristian Graus14-Nov-02 0:12 
With thanks to Daniel, and others, I have a combo box which lists all my databases, and I am able to get a list of tables with this code:

ComboBox cb = (ComboBox)sender;

m_conn.ChangeDatabase(cb.Items[cb.SelectedIndex].ToString());

SqlDataAdapter dataAdapter = new SqlDataAdapter("select * from INFORMATION_SCHEMA.TABLES", m_conn);

dataAdapter.Fill(m_dsTables);


Now all is good, except that as m_dsTables is bound to my grid, when it updates, it keeps the old values as well as displaying the new. This is not what I want - how can I get the DataGrid to reset itself ? Is it something I've misunderstood about how I am working with the dataSet ? I'm thinking so, but any help would be appreciated, coz I am not sure at this point in time what is going on....


Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002

During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
GeneralRe: DataGrid problem Pin
Paul Watson14-Nov-02 0:23
sitebuilderPaul Watson14-Nov-02 0:23 
GeneralRe: DataGrid problem Pin
James T. Johnson14-Nov-02 3:56
James T. Johnson14-Nov-02 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.