Sagar
Sagar

Reputation: 421

How to Bind Data to Grid View in a Row Formate in UWP?

In order to support my application to all devices I am migrating my application from WPF to UWP. Here I am facing one GUI Issue. i.e,

Please check the attached screen shot of my WPF application. Now I want to develop the same GUI using UWP. But not getting exact GUI.Its coming in a different formate. Please Help me to get the same Kind of GUI using UWP.

Here in UWP application I am Using Grid View.

enter image description here

Upvotes: 3

Views: 4328

Answers (1)

GeertvdC
GeertvdC

Reputation: 2918

I don't think GridView is the control you should be looking for. GridViews are used to make a grid of "items". Your table is more of a list (I guess based on the data) where each row is an item right?

In that case it's probably better to use a listview

More info: https://msdn.microsoft.com/en-us/library/windows/apps/hh465465.aspx

Within the listview you can create a datatemplate containing the "columns".

How was the WPF UI built up, using what controls? I'll assume it was a DataGrid. Those are not available in Windows 8 or 10 because they are more focused on touch interaction. There are some 3rd party libraries available which you could use. Here is a link comparing some of the 3rd party solutions: http://liftcodeplay.com/2015/10/24/datagrid-alternatives-in-uwp/

Upvotes: 3

Related Questions