Click here to Skip to main content
15,921,179 members
Home / Discussions / C#
   

C#

 
Questiondisable sound Pin
behzadcp18-May-10 9:14
professionalbehzadcp18-May-10 9:14 
AnswerRe: disable sound Pin
Not Active18-May-10 10:03
mentorNot Active18-May-10 10:03 
AnswerRe: disable sound Pin
Henry Minute18-May-10 10:12
Henry Minute18-May-10 10:12 
GeneralRe: disable sound Pin
harold aptroot18-May-10 13:02
harold aptroot18-May-10 13:02 
QuestionConnecting to Data in a SQL Server Express Database. [modified] Pin
Darrall18-May-10 8:14
Darrall18-May-10 8:14 
AnswerRe: Connecting to Data in a SQL Server Express Database. Pin
venym7618-May-10 9:41
venym7618-May-10 9:41 
GeneralRe: Connecting to Data in a SQL Server Express Database. Pin
Darrall18-May-10 10:58
Darrall18-May-10 10:58 
AnswerRe: Connecting to Data in a SQL Server Express Database. Pin
Henry Minute18-May-10 10:02
Henry Minute18-May-10 10:02 
GeneralRe: Connecting to Data in a SQL Server Express Database. Pin
Darrall18-May-10 11:02
Darrall18-May-10 11:02 
QuestionPresentation Help..... Pin
AmbiguousName18-May-10 6:26
AmbiguousName18-May-10 6:26 
JokeRe: Presentation Help..... Pin
Not Active18-May-10 6:43
mentorNot Active18-May-10 6:43 
GeneralRe: Presentation Help..... Pin
AmbiguousName18-May-10 6:47
AmbiguousName18-May-10 6:47 
AnswerRe: Presentation Help..... Pin
Dimitri Witkowski18-May-10 6:43
Dimitri Witkowski18-May-10 6:43 
GeneralRe: Presentation Help..... Pin
AmbiguousName18-May-10 6:48
AmbiguousName18-May-10 6:48 
AnswerRe: Presentation Help..... Pin
Not Active18-May-10 6:45
mentorNot Active18-May-10 6:45 
GeneralRe: Presentation Help..... Pin
AmbiguousName18-May-10 6:48
AmbiguousName18-May-10 6:48 
AnswerRe: Presentation Help..... Pin
PIEBALDconsult18-May-10 7:07
mvePIEBALDconsult18-May-10 7:07 
AnswerRe: Presentation Help..... Pin
#realJSOP18-May-10 7:10
professional#realJSOP18-May-10 7:10 
AnswerRe: Presentation Help..... Pin
Kevin Marois18-May-10 7:38
professionalKevin Marois18-May-10 7:38 
GeneralRe: Presentation Help..... Pin
AmbiguousName18-May-10 7:44
AmbiguousName18-May-10 7:44 
GeneralRe: Presentation Help..... Pin
OriginalGriff18-May-10 8:11
mveOriginalGriff18-May-10 8:11 
AnswerRe: Presentation Help..... Pin
Christo66718-May-10 23:57
Christo66718-May-10 23:57 
QuestionComboBox selection generating list for another comboBox question Pin
mprice21418-May-10 6:24
mprice21418-May-10 6:24 
Hi all,

I have the following code I'm trying to get working. When I change the selection in the comboBox in column1, I want the list generated if the selection was "Test1". However, it seems no list is generated. Any help would be appreciated. Thanks.

public class Units
        {
            public string Unit { get; set; }

        }


        private void column1DataGridViewTextBoxColumn_SelectedIndexChanged(object sender, DataGridViewCellEventArgs e)
        {

            string strPrimary = column1DataGridViewTextBoxColumn.ToString();
            Debug.WriteLine(strPrimary);
            if (strPrimary == "Test1")
            {

                //Build a list 
                var dataSource = new List<Units>();
                dataSource.Add(new Units() { Unit = "blah1" });
                dataSource.Add(new Units() { Unit = "blah2" });
                dataSource.Add(new Units() { Unit = "blah3" });

                //Setup data binding 
                this.column2DataGridViewTextBoxColumn.DataSource = dataSource;
                this.column2DataGridViewTextBoxColumn.DisplayMember = "Unit";
                
            }
        }

AnswerRe: ComboBox selection generating list for another comboBox question Pin
William Winner18-May-10 7:18
William Winner18-May-10 7:18 
AnswerRe: ComboBox selection generating list for another comboBox question Pin
Henry Minute18-May-10 7:23
Henry Minute18-May-10 7:23 

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.