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
907
Is they any way to configure the dropdown list on a column at run time?
posted

During the constructor of the editor that as the ultragrid, I want to create the dropdown lists for each column that needs it.  Currently I've assigned a comboEditor to each column and I configure those at run time, but would be nice if I can just configure the column directly and use the native drop down behavior of the grid without having to use additional controls.

Parents
No Data
Reply
  • 195
    posted

    Im not sure if this is what you refering to,, but here is some code i use to show the dropdown in my cells

    Private WithEvents FundApprultraDropDown As New Infragistics.Win.UltraWinGrid.UltraCombo

    Private WithEvents TypePOultraDropDown As New Infragistics.Win.UltraWinGrid.UltraCombo

    Private WithEvents POBCNumberultraDropDown As New Infragistics.Win.UltraWinGrid.UltraCombo

     

    Private Sub Grid2_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles grdiDistribution.InitializeLayout

    Try

    e.Layout.Bands(0).Columns("PurchaseTypeDescription").Style = ColumnStyle.DropDown

    e.Layout.Bands(0).Columns("PurchaseTypeDescription").ValueList = TypePOultraDropDown

    e.Layout.Bands(0).Columns("PurchaseNumber").Style = ColumnStyle.DropDown

    e.Layout.Bands(0).Columns("PurchaseNumber").ValueList = POBCNumberultraDropDown

    e.Layout.Bands(0).Columns("PurchaseAccount").Style = ColumnStyle.DropDowne.Layout.Bands(0).Columns("PurchaseAccount").ValueList = FundApprultraDropDown

     

    Catch ex As Exception

    Me.Logger.WriteToLog("PaymentAddEdit", ex.Message.ToString, "Grid2_InitializeLayout Error", ex.StackTrace)

    End Try

    End Sub

Children