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
270
How to select column style (Combo, DateTimepicker etc) at a runtime
posted

Hi everybody!

I'm using UltraDataGrid and I want to have one of my columns to be changed in a ComboBox manner - select from set of predefined values.

Another column I wanna edit in a DateTimePicker style.....

 

Well - the only question is HOW to implement this in runtime (and in designtime also)

 

Thanks in advance! 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     To provide a dropdown list in a cell of the grid, check out this KB article:

     HOWTO:What is the best way to place a DropDown list in a grid cell?

    Regarding the DateTimePicker, the grid will automatically use the approriate editor for a column based on the column's DataType. So you probably just need to make sure the column in this case is of the DateTime datatype.

    You can also set the Style of a column, or set it's Editor or EditorControl to have finer control over the column's editor. But the DateTimeEditor property won't work on a column that is not a DateTime type. 

Children