Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
How to do drag and drop multiple listview item to another listview in WPF?
posted

Hi,

I have two listview and I want to drag multiple item from one listview to another listview. without removing item from 1st listview,

my 2nd listview with grid view having 3 4 column, listview have some event like dragenter, drop etc. but I don't know how to use it,

any one have some example, please help me,

thanks

<ListView Grid.Row="1" x:Name="lstTags" Grid.IsSharedSizeScope="True" SelectionMode="Multiple"

HorizontalContentAlignment="Left"/>


<ListView Grid.Row="1" x:Name="lstSusbscribedGroupTag" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" Grid.IsSharedSizeScope="True" ItemContainerStyle="{DynamicResource MyItemContainerStyle}">

<ListView.View>

<GridView ScrollViewer.HorizontalScrollBarVisibility="Auto" ColumnHeaderContainerStyle="{DynamicResource CustomHeaderStyle}">

<GridViewColumn Header="Item ID" DisplayMemberBinding="{Binding ItemID}"/>

<GridViewColumn Header="Data Type" DisplayMemberBinding="{Binding Datatype}"/>

<GridViewColumn Header="Value" DisplayMemberBinding="{Binding Value}"/>

<GridViewColumn Header="Timestamp" DisplayMemberBinding="{Binding Timestamp}"/>

<GridViewColumn Header="Quality" DisplayMemberBinding="{Binding Quality}"/> <GridViewColumn Header="Update Count" DisplayMemberBinding="{Binding UpdateCount}"/>

</GridView>

</ListView.View>

</ListView>





Parents Reply Children
No Data