What is the GridView Data control?
The GridView control is used to display the data collection. It inherits from ItemsControl. The GridView control is typically used to display data horizontally, and the data displayed is usually sorted. In addition, when we generally develop horizontal views, we typically use the GridView to display the data collection.
The GridView Data control contains important properties and events:
1 isitemclickenabled property: Gets or sets whether clicking the list item triggers the Click event;
2 SelectionMode Property: Gets or sets the selected mode;
3 HeaderTemplate Property: Gets or sets the template for the title of the list, changing the appearance of the title;
4 Groupstyle Property: Gets the collection of Groupstyle objects, defines the appearance of each group;
5 Itemspanel Property: Gets or sets the panel where the content is to be placed (usually to change the direction of the GridView's rendering data);
6 SelectionChanged Event: Trigger When the selected item changes;
7 ItemClick Event: The event is triggered when the list item is clicked and the Isitemclickenabled property value is true;
How do I build a common GridView data rendering style?
Style 1: