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
40
Performance - Initializing custom controls in ultraGrid cell
posted

hi,

   We have a custom column enabled UltraGrid where the cells may be of type combo, textbox, etc,

Inorder to improve the performance of the grid we have hindered the initializing of the cell controls at

the beginning. Instead each cell would act as a normal cell (even when the data is populated) and

when user clicks on the particular cell its control is initialized and applied to the cell.

Also we have a binded Ultradatasource to the grid which on adding values to it initializes the grid cell

control by default. So we are adding the values to the grid's cell's Value property.(which doesnt

initializes the control) and on click of the grid's cell its control is created manually. Can this similar

behaviour be achieved for the UltraSource binded data also?

ie) binding data via the ultradatasource can prevent the grid cell from being initialized?(now it doesnt

happen that way).

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I'm not really sure I understand your question. Some of your terminology here is a little confusing.

    If you want the cells in a single column of the grid to handle different styles, then the thing to do would be to set the Style property of the cell in the InitializeRow event. You might also need to set other properties on the cell, such as the ValueList, if your cell requires a list.

    If the Style property doesn't give you the options you need, then you could use an Editor or EditorControl on that cell. If you have v9.2 or higher, you could even use the UltraControlContainerEditor component to embed your own custom controls in the cell.

Children
No Data