Button Visibilty inside a Datagrid

i've created a Datagrid Control in WPF. how can i make my Button visible only for a Cell

inside the row that i have select it. anyone can help.

<DataGridTemplateColumn x:Name="typ" Header="H." Width="50">
     <Button Name="btnTabelle" Visibility="Hidden" Height="20" Width="25" 



You can set the Visibility based on if the DataGridCell.IsSelected, although you will need a BooleanToVisibilityConverter to convert the boolean value to a Visibility one

Here's an example, using a RelativeSource binding to find the DataGridCell

 <Button Visibility="{Binding Path=IsSelected,
             RelativeSource={RelativeSource AncestorType={x:Type DataGridCell}},
             Converter={StaticResource MyBooleanToVisibiltyConverter}" ... />

Need Your Help

DomXPath Selecting

php html-parsing domxpath

I have a problem with the DomXPath for selecting what I need. I have a structure like

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.