ListView Binding event

0
0

Hi,

I come back with a question which was answered in thread below, but for some reason we must use ListView (convert from VWG) https://wisej.com/support/question/listview-binding-event

Actualy we use BindingList for ListView, but it looks like something is wrong in  Wisej. ListItem_PropertyChanged  sends event with newIndex, and oldIndex= -1, but Wisej use only index =-1.

Could you please take a look again? Thank you for your help.

Page

 

 

  • You must to post comments
0
0

Hi,

thank you for your help. listView.Fill(dataSource) solves many our simple forms. We will move some others to DatGridView. Will you fix the problem with NewIndex?

Best regards,

Page

  • You must to post comments
0
0

Hi,

I added an example, when I edit description textbox, all listView refresh.

Page

Attachment
  • Luca (ITG)
    Thanks, I see the OldIndex being -1 and we should use NewIndex instead, But it will not change much in your app. Everything is bound to the same source and a change in the text of the control will recreate the row, recreate the control, and you lose the focus. You should use a DataGridView instead of creating potentially hundreds of TextBox controls (this was one of the many wrong things that VWG did); if you really want to use it that way use listView,Fill(dataSource) instead.
  • You must to post comments
0
0

Please attach a small runnable test case that shows the issue.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.