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
385
Disable dropdown button
posted

Hi,

How to disable the dropdown button in ultrawindgrid.dropdown to be seem Autocomplete TextBox?

Plz ref the below image.

which of the code part do i need to change-

With UltraGrid1.DisplayLayout.Bands(0)
 .Columns.Item("CNTR").Style = UltraWinGrid.ColumnStyle.DropDown
 .Columns.Item("CNTR").AutoCompleteMode = AutoCompleteMode.SuggestAppend
 .Columns.Item("SealNo").Style = UltraWinGrid.ColumnStyle.Edit
End With

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    You cannot remove the button using the properties of the grid alone, you have to use an editor.So you don't need to set the column's Style, the editor will take care of that.

            With UltraGrid1.DisplayLayout.Bands(0)
                '.Columns.Item("CNTR").Style = UltraWinGrid.ColumnStyle.DropDown
                .Columns.Item("CNTR").AutoCompleteMode = AutoCompleteMode.SuggestAppend

                Dim editorWithCombo As New EditorWithCombo
                editorWithCombo.ButtonDisplayStyle = Infragistics.Win.ButtonDisplayStyle.Never
                .Columns.Item("CNTR").Editor = editorWithCombo
            End With

     

Children
No Data