We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

MultiColumnCombox in a grid column -GDBG

How can I add a MCCB in a grid ? I suppose that it exists an exemple (but not found :) ) Thanks, Eddy POULLET Brussels

4 Replies

AD Administrator Syncfusion Team April 27, 2005 12:14 PM

Hi Eddy, Did you already check the samples? You''ll find in the Quick Start section the GridListControlSample. Or the GDBGwithDropGrids in the DataBound section. Regards, Thomas >How can I add a MCCB in a grid ? I suppose that it exists an exemple (but not found :) ) > >Thanks, >Eddy POULLET >Brussels >


AD Administrator Syncfusion Team April 28, 2005 03:56 AM

Thanks Thomas, But I search for a MCCB with the possibility to choice the column in an object implementing IList and also the order and the width of the column. Eddy


AD Administrator Syncfusion Team April 28, 2005 04:02 AM

I can precise that I have already a MCCB (in fact the same data are presented item by item on a form and also an a grid) as a separate control but I cannot how I can link it to a column in the GDBG or link the same "dropdowngrid" to the grid. Thanks Eddy


AD Administrator Syncfusion Team April 28, 2005 05:09 PM

Hi Eddy, the dropdown column listbox will display all columns that are in your datasource. But you could create a wrapper call around your underlying datasource and there override ITypedList.GetItemProperties and return only those columns you want to show up. Another options would be to handle QueryColWidth of the DropDownListBox part. You can do this by getting the renderer for the GridListControl cell. From there, you can get renderer.ListBoxPart which is teh GridListControl, and from there you get the Grid member. Here is code you might use to subscribe to the event. private void gridControl1_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; GridDropDownGridListControlCellRenderer cr = this.gridControl1.CurrentCell.Renderer as GridDropDownGridListControlCellRenderer; if(cr != null) { GridDropDownGridListControlPart list = (GridDropDownGridListControlPart)cr.ListControlPart; list.Grid.Model.QueryColWidth += ... } } } In the QueryColWidth event you could then set e.Size = 0 and e.Handled = true for those columns that you want to hide. Stefan >I can precise that I have already a MCCB (in fact the same data are presented item by item on a form and also an a grid) as a separate control but I cannot how I can link it to a column in the GDBG or link the same "dropdowngrid" to the grid. > >Thanks >Eddy

Loader.
Live Chat Icon For mobile
Up arrow icon