Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with for each statement Pin
Guffa6-May-07 21:48
Guffa6-May-07 21:48 
GeneralRe: Problem with for each statement Pin
kalaveer6-May-07 22:57
kalaveer6-May-07 22:57 
GeneralRe: Problem with for each statement Pin
Christian Graus7-May-07 1:11
protectorChristian Graus7-May-07 1:11 
GeneralRe: Problem with for each statement Pin
Martin#6-May-07 21:52
Martin#6-May-07 21:52 
AnswerRe: Problem with for each statement Pin
Sandeep Akhare6-May-07 20:52
Sandeep Akhare6-May-07 20:52 
QuestionWebBrowser crawling problem Pin
Green Fuze6-May-07 18:22
Green Fuze6-May-07 18:22 
AnswerRe: WebBrowser crawling problem Pin
Ravi Bhavnani6-May-07 19:26
professionalRavi Bhavnani6-May-07 19:26 
QuestionCan I run query on data shown in DataGrid? Pin
Khoramdin6-May-07 17:51
Khoramdin6-May-07 17:51 
Hello everyone,

I have a DataGrid which is populated by data from the Database server. The following codes shows this.

        // 2. Start DataGridView "dataGridView1".<br />
<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 />
        dataGridView1.DataSource = myds.Tables[SelectedTableName];


I was wondering if it is possible to run queries on the DataGrid's data similar to the one that can be run on the data stored in database server?

Thank you very much and have a great day.

Khoramdin
AnswerRe: Can I run query on data shown in DataGrid? Pin
EvilInide6-May-07 18:26
EvilInide6-May-07 18:26 
AnswerRe: Can I run query on data shown in DataGrid? Pin
Justin Bozonier6-May-07 19:05
Justin Bozonier6-May-07 19:05 
AnswerRe: Can I run query on data shown in DataGrid? Pin
Jaiprakash M Bankolli6-May-07 22:23
Jaiprakash M Bankolli6-May-07 22:23 
AnswerRe: Can I run query on data shown in DataGrid? Pin
AFSEKI7-May-07 1:35
AFSEKI7-May-07 1:35 
Questionneed help with obj changed function Pin
neodeaths6-May-07 16:47
neodeaths6-May-07 16:47 
AnswerRe: need help with obj changed function Pin
led mike6-May-07 16:52
led mike6-May-07 16:52 
AnswerRe: need help with obj changed function Pin
Niiiissssshhhhhuuuuu6-May-07 17:23
Niiiissssshhhhhuuuuu6-May-07 17:23 
GeneralRe: need help with obj changed function Pin
neodeaths6-May-07 17:38
neodeaths6-May-07 17:38 
GeneralRe: need help with obj changed function Pin
Niiiissssshhhhhuuuuu6-May-07 17:43
Niiiissssshhhhhuuuuu6-May-07 17:43 
AnswerRe: need help with obj changed function Pin
AFSEKI7-May-07 1:39
AFSEKI7-May-07 1:39 
QuestionHow to Banner information? Pin
Khoramdin6-May-07 14:15
Khoramdin6-May-07 14:15 
AnswerRe: How to Banner information? Pin
Ravi Bhavnani6-May-07 15:41
professionalRavi Bhavnani6-May-07 15:41 
Questionabout outerxml Pin
Hamsika rani6-May-07 13:35
Hamsika rani6-May-07 13:35 
AnswerRe: about outerxml Pin
led mike6-May-07 16:50
led mike6-May-07 16:50 
AnswerRe: about outerxml Pin
Stefan Troschuetz6-May-07 21:34
Stefan Troschuetz6-May-07 21:34 
QuestionPreview html code... Pin
simplicitylabs6-May-07 12:53
simplicitylabs6-May-07 12:53 
AnswerRe: Preview html code... Pin
Ravi Bhavnani6-May-07 15:44
professionalRavi Bhavnani6-May-07 15:44 

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.