Atttach Event handler to code added combobox how ?

1 posts, 0 answers
  1. Dave
    Dave avatar
    16 posts
    Member since:
    Oct 2007

    Posted 17 Oct 2013 Link to this post

    I added a combobox to my grid via the following method
       GridViewComboBoxColumn cboreason = new GridViewComboBoxColumn("Reasons");
                   
                   cboreason.DataSource = pamsContext.GetGrievancesReasons();
                   cboreason.FieldName = "reason";
                   cboreason.DisplayMember = "Value";
                   cboreason.ValueMember = "Key";
                   cboreason.Width = 100;
                   grvGrievances.Columns.Add(cboreason);
                   grvGrievances.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
         

     I have a details changed to track the dirty state of my form which i normally attach via 
      txtReportedTo.SelectedValueChanged+= DetailsChanged;
                 

    How do i do this with the above ???? As dont see the usual SelectedValueChanged method to call ??
Back to Top