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

How to show combobox in nested child records?

Hello i have an application with a GridDataBoundGrid, with parent records their childs, in this case i have a comobobox cell type in one of the columns, but the problem is that this combo oly appears in the parents, not in the childs and i want the combobox in all levels.

 Dim cboCellTipo As GridStyleInfo = Me.grdActividades.Binder.InternalColumns("IDTipo").StyleInfo
        cboCellTipo.DataSource = listaTablaDetalleTipos
        cboCellTipo.DisplayMember = "DescripcionCorta"
        cboCellTipo.ValueMember = "IDTablaDetalle"
        cboCellTipo.DropDownStyle = GridDropDownStyle.Exclusive
        cboCellTipo.CellType = "ComboBox"

I define the combo cell like this, when I'm filling the grid form the datasource.
Anyone could help me please.


1 Reply

AG Anish George Syncfusion Team June 16, 2015 11:59 AM UTC

Hi Alex,

Thank you for your interest in Syncfusion products.

We suggest you to use the QueryCellInfo event to assign the combobox cell type in the child table. Please refer the below code snippet for better understanding.


AddHandler Me.gridDataBoundGrid1.Model.QueryCellInfo, AddressOf grid_QueryCellInfo

Private Sub grid_QueryCellInfo(sender As Object, e As GridQueryCellInfoEventArgs)

    ' Where the ColIndex must be the index of the column "IDTipo".

    If e.ColIndex = 3 AndAlso e.RowIndex > 0 Then

        e.Style.CellType = "ComboBox"

        e.Style.DataSource = listaTablaDetalleTipos

        e.Style.DisplayMember = "DescripcionCorta"

        e.Style.ValueMember = "IDTablaDetalle"

        e.Style.DropDownStyle = GridDropDownStyle.Exclusive

        e.Style.CellType = "ComboBox"

    End If

Please let us know if you need any further assistance.


Live Chat Icon For mobile
Up arrow icon