+ 2

Best UI control for table in WPF

I try to figure out what the best table UI control is WPF. I did use a listbox but left that concept because I could not get the columns to autosize. So I went to a listview and a gridview. Like in this tutorial. http://www.wpf-tutorial.com/listview-control/listview-with-gridview/ This looks nice but I have not found the option "HideSelection" yet. I tried to set the ControlBrushColor in the listview. That did not seem to do anything. Since I use the gridview in the listview. The gridview seems to have the control of the text color. but I did not found a possibility to set the ControlBrushColor there. I want multiple columns. Together the columns should fill the entire space of the control. I want 1 row to be selected and to have a selected color even if the control is not in focus. (in winforms this option was called hide selection false) Can someone help me with this xaml ?

21st May 2018, 9:54 PM
sneeze
sneeze - avatar
1 Answer
0
Have you tried DataGrid with MahApps.Metro? I think it's really awesome library. And you may have to use DataTemplate to create your desired UI.
30th May 2018, 3:52 PM
Fahmi Noor Fiqri
Fahmi Noor Fiqri - avatar