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
790
Is it possible to have two control in a WinGrid Cell?
posted

Hi, Is ist possible to have  two different controls in a grid cell? For Example I want a cell to have a Calendar Control and a dropdown button control (in which I am embedding another User Control). I have a grid with three columns 1. name 2. operator and 3. Value. If user pics "Between" as a operator I have to show two set of values. I am creating my grid at run time using EmbeddableEditorBase. I am using 7.3 version of infragistics. Thanks , Ajay

  • 469350
    Suggested Answer
    Offline posted

    Hi Ajay,

    I'm not sure I understand exactly what you need. Most of the Editor controls, such as DateTimeEditor, support a ButtonsRight and ButtonLeft collection. So you could add a DropDownEditorButton to it which drops down a control and you could embed the editor in the grid using the EditorControl property on the column.

    But where would the second value come from? You can't store two values in a single field of data. Or.. I suppose you could, but then every value in the column would have to be some object that has multiple properties and the DateTimeEditor would not know how to deal with that object directly. So perhaps you need a hidden column in the grid that stores the second value.