Click here to Skip to main content
15,902,492 members
Home / Discussions / C#
   

C#

 
GeneralRe: Vehicle detection in C# Pin
OriginalGriff7-May-10 23:48
mveOriginalGriff7-May-10 23:48 
GeneralRe: Vehicle detection in C# Pin
Pete O'Hanlon8-May-10 12:03
mvePete O'Hanlon8-May-10 12:03 
GeneralRe: Vehicle detection in C# Pin
#realJSOP7-May-10 23:44
professional#realJSOP7-May-10 23:44 
Questiondatagridview filtering....where to start? Pin
mprice2147-May-10 17:47
mprice2147-May-10 17:47 
AnswerRe: datagridview filtering....where to start? Pin
Abhinav S7-May-10 18:13
Abhinav S7-May-10 18:13 
AnswerRe: datagridview filtering....where to start? Pin
Pedro Covarrubias7-May-10 19:30
Pedro Covarrubias7-May-10 19:30 
AnswerRe: datagridview filtering....where to start? Pin
Stanciu Vlad7-May-10 22:52
Stanciu Vlad7-May-10 22:52 
GeneralRe: datagridview filtering....where to start? Pin
mprice21420-May-10 10:12
mprice21420-May-10 10:12 
Stanciu Vlad wrote:
apply a filter to your second comboBox (something like "Option1 = " + comboBox1.Text, but adapt it to a dataGridView).


I have the following filtering method:

private void GetRowsByFilter()
        {
            //DataTable table = DataSet1.Tables["Orders"];
            //// Presuming the DataTable has a column named Date.
            string expression;
            expression = "MeasureType = 'Force'";
            DataRow[] foundRows;

            // Use the Select method to find all rows matching the filter.
            foundRows = table.Select(expression);

            

            // Print column 0 of each returned row.
            for (int i = 0; i < foundRows.Length; i++)
            {
                
                Debug.WriteLine(foundRows[i][0] + "test");
            }
        }


I am calling this method in my comboBox SelectedIndexChanged.

With that I do get the number of rows returned that matches Force in Debug.Writeline, but not sure how to filter the 2nd ComboBox display member. Do you have any thoughts on this?
GeneralRe: datagridview filtering....where to start? Pin
Stanciu Vlad20-May-10 10:22
Stanciu Vlad20-May-10 10:22 
GeneralRe: datagridview filtering....where to start? [modified] Pin
mprice21424-May-10 8:24
mprice21424-May-10 8:24 
GeneralRe: datagridview filtering....where to start? Pin
Stanciu Vlad25-May-10 21:12
Stanciu Vlad25-May-10 21:12 
GeneralRe: datagridview filtering....where to start? Pin
mprice21426-May-10 7:48
mprice21426-May-10 7:48 
GeneralRe: datagridview filtering....where to start? Pin
Stanciu Vlad26-May-10 10:05
Stanciu Vlad26-May-10 10:05 
GeneralRe: datagridview filtering....where to start? Pin
mprice21426-May-10 17:43
mprice21426-May-10 17:43 
GeneralRe: datagridview filtering....where to start? Pin
Stanciu Vlad26-May-10 20:43
Stanciu Vlad26-May-10 20:43 
GeneralRe: datagridview filtering....where to start? <Solved> Pin
mprice21426-May-10 18:52
mprice21426-May-10 18:52 
GeneralRe: datagridview filtering....where to start? Pin
Stanciu Vlad26-May-10 20:54
Stanciu Vlad26-May-10 20:54 
GeneralRe: datagridview filtering....where to start? Pin
mprice21427-May-10 3:13
mprice21427-May-10 3:13 
GeneralRe: datagridview filtering....where to start? Pin
Stanciu Vlad27-May-10 6:52
Stanciu Vlad27-May-10 6:52 
QuestionXML Serialization of derived classes Pin
Roland Bär7-May-10 12:35
Roland Bär7-May-10 12:35 
AnswerRe: XML Serialization of derived classes Pin
Peace ON7-May-10 21:40
Peace ON7-May-10 21:40 
AnswerRe: XML Serialization of derived classes Pin
Stanciu Vlad7-May-10 23:20
Stanciu Vlad7-May-10 23:20 
Questionhow can i make a distributed system through C# ? Pin
Med7at7-May-10 11:30
Med7at7-May-10 11:30 
AnswerRe: how can i make a distributed system through C# ? Pin
Garth J Lancaster7-May-10 13:43
professionalGarth J Lancaster7-May-10 13:43 
AnswerRe: how can i make a distributed system through C# ? Pin
Member 41702067-May-10 15:04
Member 41702067-May-10 15:04 

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.