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
470
Added ultracombo to ultraGrid using EditorControl.
posted

 Hi Viewers'

I've successfully added ultracombo control to a ultragrid control using EditorControl.

when i'm clicking that cell "ultracombo" is opening but the problem is that, the cell also is in editable mode, a user directly type anything in that.... that is the problem.

just i want  a user only select "ultracombo" values....

my code..

 uGrid_UserDetails.DisplayLayout.Bands[0].Columns["Group"].EditorControl = this.ucombo_Groups_hide; 

 

thanks in advance. 

 

 

Parents
  • 469350
    Verified Answer
    Offline posted

     Hi,

        If you want to put a dropdown list in a cell, using an editor isn't really the best or most efficient way to do it. Unless you need the EditorControl for some other reason, like you are using a DataFilter or EditorButtons, you'd be better off with using an UltraDropDown and assigning it to the ValueList property of the column.

        Here's an article with more info:  HOWTO:What is the best way to place a DropDown list in a grid cell?

        Anyway, none of that is related to your question, it's just an FYI. Whether you are using an EditorControl or a ValueList, the answer is the same. What you want to do is set the Style of the column to DropDownList.  

Reply Children
No Data