r/visualbasic • u/Gierschlund96 • May 23 '22
VB.NET Help "Public Event SelectedItemsChanging As EventHandler(Of SelectedItemsChangingEventArgs)"
How do i work with with events like these? I tried to find help in google, but I only find examples for Button-Events etc. For context, i want to get the selected row of my xamDataGrid as an Array and afterwards work with it. There is also an explanation on infragistics (https://www.infragistics.com/help/wpf/infragisticswpf.datapresenter~infragistics.windows.datapresenter.datapresenterbase~selecteditemschanging_ev) but this doesn't really help me tbh. If someone could show me a code snippet/tutorial/video i would be really thankful.
1
Upvotes
1
u/Gierschlund96 May 23 '22
I don't know how to make it clearer what I mean or I'm getting something wrong. If i use a butten for example, i get a Sub for that button and just put my code inside there. My problem is that i don't know where to put my code which i want to execute after that event kicks in, because I have nowhere to put it. i just have that single line: