This is similar to the dragdrop we did in this post but instead of dragging listbox items we use datagrid rows
you can see a demo here and source is here
Read Full Post »
We can use Popup to display a tooltip at the row level in the datagrid
Here is sample code
<UserControl x:Class=”slapp1a.Page”
xmlns=”http://schemas.microsoft.com/client/2007“
xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml“
xmlns:data=”clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data”
Width=”600″ Height=”600″>
<UserControl.Resources>
<DataTemplate x:Key=”dt”>
<StackPanel Orientation=”Horizontal”>
<TextBlock Text=”This is a tooltip for the Row with content : “></TextBlock>
<TextBlock Text=”{Binding}”></TextBlock>
</StackPanel>
</DataTemplate>
</UserControl.Resources>
<Grid x:Name=”LayoutRoot” Background=”White”>
<data:DataGrid x:Name=”dataGrid1″
Height=”400″
Width=”450″
Margin=”0,5,0,10″
AutoGenerateColumns=”True” />
[...]
Read Full Post »