Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between datagrid and grid in wpf

Tags:

What is the difference between DataGrid (not GridView) and Grid controls in wpf?

like image 404
Archie Avatar asked Apr 22 '10 13:04

Archie


People also ask

What is the difference between DataGrid and GridView?

The DataGrid and the GridView controls have different event models. The DataGrid control raises single events for operations, while the GridView control is capable of both pre-operation and post-operation events. The GridView control supports the Sorting event that occurs when a field is sorted.

What is WPF grid?

A Grid is a very powerful and useful Layout in WPF. It enables you to arrange children elements in cells defined by rows and columns. In fact, when we add a new XAML document or create a new WPF Project in Visual Studio, Visual Studio automatically adds a Grid as the first container inside the window element.

What is difference between ListView and GridView?

The main difference between ListView and GridView is how it lays out its child. With ListView you are laying your children one by one either vertically or horizontally only. With GridView, its a combination of both. It lays its children horizontally first.

What is the difference between list view and GridView in C#?

The main difference between a ListView/GridView and a DataGrid is that the latter provides editing and sorting functionality out of the box.


1 Answers

A Grid is a control for laying out other controls on the form (or page).

A DataGrid is a control for displaying tabular data as read from a database for example.

like image 68
ChrisF Avatar answered Oct 18 '22 11:10

ChrisF