Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
7901 | Oct 14,2003 12:15 PM UTC | Oct 17,2003 05:46 AM UTC | WinForms | 10 |
![]() |
Tags: GridControl |
Private Sub GridDataBoundGrid1_CurrentCellShowingDropDown(ByVal sender As Object, ByVal e As GridCurrentCellShowingDropDownEventArgs) Handles GridDataBoundGrid1.CurrentCellShowingDropDown Dim cc As GridCurrentCell = Me.GridDataBoundGrid1.CurrentCell If cc.Renderer.GetType() Is GetType(GridDropDownGridListControlCellRenderer) Then Dim cr As GridDropDownGridListControlCellRenderer = CType(cc.Renderer, GridDropDownGridListControlCellRenderer) cr.ListControlPart.DropDownRows = 12 cr.ListControlPart.AutoSizeColumns = True End If End Sub
If cc.ColIndex = 1 Then
to
If cc.ColIndex = 2 Then
With that change your sample dropped 10 rows for me.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.