or
| Private Sub rgvLines_RowFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RowFormattingEventArgs) Handles rgvLines.RowFormatting |
| Dim approval As String = Nothing |
| approval = e.RowElement.RowInfo.Cells("APPROVAL").Value.ToString() |
| If approval = "UNK" Then |
| e.RowElement.RowInfo.Cells("COMM").CellElement.Visibility = ElementVisibility.Hidden |
| End If |
| End Sub |
| For each myDate in DateList |
| Me.RadCalendar1.SelectedDates.Add(myDate ) |
| Next |
I have a combobox defined like this:
| cmbOrigin.Items.Clear(); |
| cmbOrigin.AutoCompleteMode = AutoCompleteMode.SuggestAppend; |
| cmbOrigin.NullText = Transat.PDP.Client.Properties.Resources.ControlDataOriginNullText; |
| foreach (MyItem i in ListOfMyItems) |
| { |
| cmbOrigin.Items.Add(new RadComboBoxItem(string.Format("{0} - {1}", i.Code, i.Nom), i)); |
| } |
I want to have the AutoCompleteMode set to SuggestAppend so that the rest of the text get showed and the list is showed too.
What i dont want is the user to be able to type 2 letters and then hit backspace and go out of the combobox leaving me with an inconsistant value.
how can i force the user to pick a valid entry in the combobox?
thanks
mateo