Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
620
SelectedItems on my valueList
posted

I get the rows and the dropdown works fine too.... However, i cannot seem to figure out how i bind the dropdown with the typeId. Could you help plz? 

 

 

 

OnLoad 

ultraGrid2.DataSource = dataLayer.getHaendelseStatus(); //gets Id, name, typeId
          

        }

        private void ultraGrid2_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            Infragistics.Win.ValueList v1;

            v1 = e.Layout.ValueLists.Add("MyValueList");
            v1.ValueListItems.Add(1, "A");
            v1.ValueListItems.Add(2, "B");
            v1.ValueListItems.Add(3, "C");
           
            e.Layout.Bands[0].Columns.Add("ny", "nothingSpecial");
            e.Layout.Bands[0].Columns["ny"].ValueList = e.Layout.ValueLists["MyValueList"];
            }

 

I have also tried with an ultradropdown approach..

      private void ultraGrid2_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {

 ultraDropDown1.DataSource = dataLayer.gettypeNames();
            ultraDropDown1.ValueMember = "Id";
            ultraDropDown1.DisplayMember = "Art";
           
  
            e.Layout.Bands[0].Columns.Add("ny", "nothingSpecial");
            e.Layout.Bands[0].Columns["ny"].ValueList = this.ultraDropDown1;
           

}
 

How on earth do i bind the dropdown to the typeId??  ultraGrid2.DataSource = dataLayer.getHaendelseStatus(); //gets Id, name, typeId