Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: DataGrid problem Pin
Martin Haesemeyer14-Nov-02 6:04
Martin Haesemeyer14-Nov-02 6:04 
QuestionCreation of context menu in a simple button? Pin
EdgarBM13-Nov-02 22:10
EdgarBM13-Nov-02 22:10 
AnswerRe: Creation of context menu in a simple button? Pin
Badgott1819-Nov-02 0:00
Badgott1819-Nov-02 0:00 
GeneralUserControl: Property not showing in Properties tab Pin
Le centriste13-Nov-02 15:52
Le centriste13-Nov-02 15:52 
GeneralRe: UserControl: Property not showing in Properties tab Pin
Delegate14-Nov-02 4:41
Delegate14-Nov-02 4:41 
GeneralNo Syntax Highlighting C# Controls Pin
Bog13-Nov-02 15:17
Bog13-Nov-02 15:17 
GeneralRe: No Syntax Highlighting C# Controls Pin
James T. Johnson13-Nov-02 15:22
James T. Johnson13-Nov-02 15:22 
Questionis there any changes in ? Pin
imran_rafique13-Nov-02 14:26
imran_rafique13-Nov-02 14:26 
AnswerRe: is there any changes in ? Pin
David Stone13-Nov-02 14:39
sitebuilderDavid Stone13-Nov-02 14:39 
Questionhow to convert these strings into int? Pin
imran_rafique13-Nov-02 14:16
imran_rafique13-Nov-02 14:16 
AnswerRe: how to convert these strings into int? Pin
David Stone13-Nov-02 14:35
sitebuilderDavid Stone13-Nov-02 14:35 
AnswerRe: how to convert these strings into int? Pin
Christian Graus13-Nov-02 15:03
protectorChristian Graus13-Nov-02 15:03 
GeneralRe: how to convert these strings into int? Pin
David Stone13-Nov-02 15:12
sitebuilderDavid Stone13-Nov-02 15:12 
GeneralRe: how to convert these strings into int? Pin
Christian Graus13-Nov-02 15:35
protectorChristian Graus13-Nov-02 15:35 
GeneralRe: how to convert these strings into int? Pin
imran_rafique13-Nov-02 15:45
imran_rafique13-Nov-02 15:45 

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.