Tag in TableViewColumn, TableViewTextColumn #49
Closed
JLBLU
started this conversation in
Feedback Wanted
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Ahmad,
Thank you for your Nuget package.
I am trying to replace DataGrid by TableView in my project.
So far, it's working pretty well. Some problems with selecting a row when you don't click directly on the 1st column. I get around this by using a button + the tapped event and then deferring the selected line process (*).
But now, I have a case where I am building my list dynamically. For this, I need to set and retrieve a "Tag" value?
But there is no such possibility :
Is it possible to add this functionality in a next release ? Thanks
Jean-Luc
(*)
<controlsTV:TableViewTemplateColumn
Header="Detail"
Width="Auto">
controlsTV:TableViewTemplateColumn.CellTemplate
</controlsTV:TableViewTemplateColumn.CellTemplate>
</controlsTV:TableViewTemplateColumn>
private TableViewRow FindRowUnderMouse(DependencyObject dp)
{
TableViewRow dg = dp.GetParentOfType();
return dg;
}
private void tvBtnDetail_Tapped(object sender, TappedRoutedEventArgs e)
{
DependencyObject dp = (DependencyObject)e.OriginalSource;
TableViewRow dgr = FindRowUnderMouse(dp);
}
Beta Was this translation helpful? Give feedback.
All reactions