Am I doing something wrong, in a normal combobox this works fine. However in the ultracombobox it displays the entire dataset reguardless of
DataSet ds1 = SqlHelper.ExecuteDataset(SqlConnection.String, CommandType.Text, "Exec dbo.procSecurityListSelect 'code'");ultraComboSecId.DataSource = ds1.Tables[0];ultraComboSecId.DisplayMember = "code";ultraComboSecId.Value = "sec_id";
Hi,
I'm afraid I don't understand your question. I don't understand the signifcance of the presence of a vertical scrollbar and how that relates to the rest of this thread.
It works well provided there is no verticle scrollbar. In the past I've hardcoded an offset, but that seems to be a real hack and not very flexible. For example say a new version of windows changes the standard width of a scrollbar.
Is there a way to get the single column to automatically adjust to the scrollbar's presence/absense?
this took a while to solve, but now seems not only logical but obvious
uCbo.DropDownStyle = Infragistics.Win.UltraWinGrid.UltraComboStyle.DropDownList
uCbo.DisplayMember = "code"
uCbo.ValueMember = "sec_id"
' now we hide the columns that we dont wish to see
uCbo.Rows.Band.Columns(1).Hidden = True
' now lets hide the column headers
uCbo.Rows.Band.ColHeadersVisible = False
' and finally we set the width of the remaining column to the width of the control
uCbo.Rows.Band.Columns(0).Width = uCbo.Width
Hope this helps
regards
Andy (Dogs)