Click here to Skip to main content
16,006,475 members
Home / Discussions / C#
   

C#

 
AnswerRe: Deleting Leading White Spaces Pin
Giorgi Dalakishvili9-May-07 10:41
mentorGiorgi Dalakishvili9-May-07 10:41 
AnswerRe: Deleting Leading White Spaces Pin
Patrick Etc.9-May-07 10:44
Patrick Etc.9-May-07 10:44 
QuestionTrace messages from a service on 2003 Server not showing??!! Pin
LongRange.Shooter9-May-07 10:25
LongRange.Shooter9-May-07 10:25 
Question"Exception of type 'System.OutOfMemoryException' was thrown Pin
AAKAra9-May-07 10:14
AAKAra9-May-07 10:14 
AnswerRe: "Exception of type 'System.OutOfMemoryException' was thrown Pin
LongRange.Shooter10-May-07 10:12
LongRange.Shooter10-May-07 10:12 
QuestionSteps to developing a Proxy Server Pin
TheGecko9-May-07 9:18
TheGecko9-May-07 9:18 
AnswerRe: Steps to developing a Proxy Server Pin
Tarakeshwar Reddy9-May-07 9:30
professionalTarakeshwar Reddy9-May-07 9:30 
QuestionHow to have the DataSet available after getting disconnected from Database server? Pin
Khoramdin9-May-07 9:07
Khoramdin9-May-07 9:07 
Hello everyone,

I am using a DataGridView to display the entire data stored in a remote Database server. I am using the following code for populating the dataGridView controller.

        // 2. Start DataGridView "dataGridView2". <br />
        // 2a. create a mysql DataAdapter<br />
        OdbcAd = new System.Data.Odbc.OdbcDataAdapter("SELECT * FROM " + SelectedTableName + ";", OdbcCon);<br />
<br />
        // 2b. create a dataset<br />
        DataSet myds = new DataSet();<br />
<br />
        // 2c. now fill and bind the DataGrid<br />
        OdbcAd.Fill(myds, SelectedTableName);<br />
<br />
        // 2d. dataGridView1.DataSource = myds;<br />
        dataGridView2.DataSource = myds.Tables[SelectedTableName];


I would like to have the Dataset continue to be available even after been disconnected from the remote database server.

Can someone tell me how this can be done?

Thank you very much and have a great day.

Khoramdin
AnswerRe: How to have the DataSet available after getting disconnected from Database server? Pin
Giorgi Dalakishvili9-May-07 9:33
mentorGiorgi Dalakishvili9-May-07 9:33 
GeneralRe: How to have the DataSet available after getting disconnected from Database server? Pin
Khoramdin9-May-07 9:42
Khoramdin9-May-07 9:42 
AnswerRe: How to have the DataSet available after getting disconnected from Database server? Pin
Khoramdin9-May-07 9:54
Khoramdin9-May-07 9:54 
QuestionHow to code this in C# Pin
Guangli(Glen) Liu9-May-07 7:46
professionalGuangli(Glen) Liu9-May-07 7:46 
AnswerRe: How to code this in C# Pin
Giorgi Dalakishvili9-May-07 7:50
mentorGiorgi Dalakishvili9-May-07 7:50 
GeneralRe: How to code this in C# Pin
Guangli(Glen) Liu9-May-07 8:08
professionalGuangli(Glen) Liu9-May-07 8:08 
AnswerRe: How to code this in C# Pin
Dave Doknjas9-May-07 14:41
Dave Doknjas9-May-07 14:41 
GeneralRe: How to code this in C# Pin
Guangli(Glen) Liu10-May-07 5:18
professionalGuangli(Glen) Liu10-May-07 5:18 
QuestionProblem with fading pictures Pin
Kasic Slobodan9-May-07 7:33
Kasic Slobodan9-May-07 7:33 
QuestionPing in wireless network Pin
Chayan (cse student)9-May-07 7:26
Chayan (cse student)9-May-07 7:26 
AnswerRe: Ping in wireless network Pin
MrEyes9-May-07 7:33
MrEyes9-May-07 7:33 
AnswerRe: Ping in wireless network Pin
Dave Kreskowiak9-May-07 7:51
mveDave Kreskowiak9-May-07 7:51 
QuestionManaging Memory and Resources [modified] Pin
MrEyes9-May-07 7:22
MrEyes9-May-07 7:22 
AnswerRe: Managing Memory and Resources Pin
Luc Pattyn9-May-07 7:43
sitebuilderLuc Pattyn9-May-07 7:43 
GeneralRe: Managing Memory and Resources Pin
MrEyes9-May-07 7:50
MrEyes9-May-07 7:50 
GeneralRe: Managing Memory and Resources Pin
Judah Gabriel Himango9-May-07 12:41
sponsorJudah Gabriel Himango9-May-07 12:41 
GeneralRe: Managing Memory and Resources Pin
MrEyes9-May-07 22:51
MrEyes9-May-07 22:51 

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.