ListViewComboBox and SelectedValueChanged event

0
0

Hi, I’m trying to use a ListViewComboBox in a form, but I don’t understand why the SelectedValue property never gets moved. How to know the selected value and which event to use?
Furthermore, I don’t understand the behavior when selecting a row. The SelectedIndex value always passes through -1 and then sets to the right value, for example if I move from row 2 to row 3 Selectedindex starts with 2 and then becomes -1 and finally 3, Is it possible to avoid this?
Thank you.

  • You must to post comments
0
0

Hi Enrico,

thanks! We are checking that issue and are working on a fix.
I’ll keep you updated.

Best regards
Frank

  • Enrico Biccheri
    OK. if you can to see also my second question is very important, because the double change of selectedindex make an insolit and useless event. Thank You Frank
  • Frank (ITG)
    Hi Enrico, this will be fixed in Wisej.NET 3.5.13 which is currently in QA. Best regards, Frank
  • You must to post comments
0
0

Yes Frank

Dim bd2 As New BindingSource(tbtip.DataSet.Tables(0))
ListViewComboBox1.Columns.Clear()
ListViewComboBox1.Columns.Add(“Tipo”)
ListViewComboBox1.Columns.Add(“Descrizione”)
ListViewComboBox1.Columns(0).DisplayPropertyName = “Tipo_Cam”
ListViewComboBox1.Columns(1).DisplayPropertyName = “Descrizione”
ListViewComboBox1.Columns(1).Width = 120
ListViewComboBox1.Columns(1).AutoResize(ColumnHeaderAutoResizeStyle.HeaderAndColumnContent)
ListViewComboBox1.DisplayMember = “Descrizione”
ListViewComboBox1.DataMember = “Tipo_Cam”
ListViewComboBox1.DataSource = bd2

 

you can see into the attachment that on the event during an debug

the SelectedValue (esito2.jpg) is nothing and the SelecteditemTex (esito1.jpg) is with a real value.

Thank You

Attachment
  • You must to post comments
0
0

Hi Enrico,

can you please put together a small test case that shows how you are using the ListViewComboBox?

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.