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
4695
dropdown list text in ultragrid
posted

Dear all,

I have below code. But don't know why the text showing in the drop down list in ultragrid is very strange as shown in the picture

     UltraGridColumn column3 = this.ultraGrid1.DisplayLayout.Bands[0].Columns[3];
            this.ultraGrid1.DisplayLayout.ValueLists.Clear();
            ValueList valueList = this.ultraGrid1.DisplayLayout.ValueLists.Add("VL1");

            valueList.ValueListItems.Add(1, " ");
            valueList.ValueListItems.Add(2, ResMgr.ResManager.GetString("cmbDiscountT_UpTo"));
            valueList.ValueListItems.Add(3, ResMgr.ResManager.GetString("cmbDiscountT_Fixed"));
            column3.CellActivation = Activation.AllowEdit;
            column3.ValueList = valueList;