0% found this document useful (0 votes)
67 views5 pages

Datagridview: #Datagridvie W

The document provides an overview of the DataGridView control in .NET UI design. It discusses how DataGridView can be used to display data from a spreadsheet or database in a grouped format. An example shows how to instantiate and set up a basic DataGridView with columns.

Uploaded by

Hetao Mejiadiaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views5 pages

Datagridview: #Datagridvie W

The document provides an overview of the DataGridView control in .NET UI design. It discusses how DataGridView can be used to display data from a spreadsheet or database in a grouped format. An example shows how to instantiate and set up a basic DataGridView with columns.

Uploaded by

Hetao Mejiadiaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

datagridview

#datagridvie
w
Table of Contents
About 1

Chapter 1: Getting started with datagridview 2

Remarks 2

Examples 2

Introduction to DataGridView 2

Credits 3
About
You can share this PDF with anyone you feel could benefit from it, downloaded the latest version
from: datagridview

It is an unofficial and free datagridview ebook created for educational purposes. All the content is
extracted from Stack Overflow Documentation, which is written by many hardworking individuals at
Stack Overflow. It is neither affiliated with Stack Overflow nor official datagridview.

The content is released under Creative Commons BY-SA, and the list of contributors to each
chapter are provided in the credits section at the end of this book. Images may be copyright of
their respective owners unless otherwise specified. All trademarks and registered trademarks are
the property of their respective company owners.

Use the content presented in this book at your own risk; it is not guaranteed to be correct nor
accurate, please send your feedback and corrections to [email protected]

https://riptutorial.com/ 1
Chapter 1: Getting started with datagridview
Remarks
This section provides an overview of what datagridview is, and why a developer might want to use
it.

It should also mention any large subjects within datagridview, and link out to the related topics.
Since the Documentation for datagridview is new, you may need to create initial versions of those
related topics.

Examples
Introduction to DataGridView

A DataGridView is a control in .NET UI design, which consists of rows and columns used to arrange
data.

Often there is need to depict data either from a spreadsheet or database on a UI design in an
application. When this data is to be shown grouped by its properties, we choose a DataGridView.

In C# Window Forms, a DataGridView can be instantiated using a statement like:

DataGridView dgv = new DataGridview();

A column count can be used to state beforehand as to how many columns are present in a
DataGridView like so:

dgv.ColumnCount = 4;

A DataGridView consists of data categorized by columns. The column header is typically used to
show what data the DataGridView Contains.

dgv.Columns[0].Name = "Name";
dgv.Columns[1].Name = "Age";
dgv.Columns[2].Name = "Nationality";
dgv.Columns[3].Name = "Height";

Read Getting started with datagridview online:


https://riptutorial.com/datagridview/topic/7593/getting-started-with-datagridview

https://riptutorial.com/ 2
Credits
S.
Chapters Contributors
No

Getting started with


1 Asif.Ali, Community, Ganesh Kamath - 'Code Frenzy'
datagridview

https://riptutorial.com/ 3

You might also like