From 0242bc18f30a221466273e358b98d714f813237f Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Fri, 26 Nov 2021 07:50:55 +0530 Subject: [PATCH 01/22] updating unique titles to topics for us1889327 --- ...w-to-create-an-unbound-windows-forms-datagridview-control.md | 2 +- ...gh-creating-an-unbound-windows-forms-datagridview-control.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md index aef2187a83..821b1eca6e 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md @@ -1,5 +1,5 @@ --- -title: Create an Unbound DataGridView Control +title: How to Create an Unbound Windows Forms DataGridView Control ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md index bfb230f8d4..cc10d6f8f7 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md @@ -1,5 +1,5 @@ --- -title: Create an Unbound DataGridView Control +title: Walkthrough Creating an Unbound Windows Forms DataGridView Control ms.date: "03/30/2017" dev_langs: - "csharp" From ad120e7b242a13be2b562c5ad444fe063f952201 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Fri, 26 Nov 2021 15:19:14 +0530 Subject: [PATCH 02/22] updating unique titles to topics for us1889327 --- ...-to-create-an-unbound-windows-forms-datagridview-control.md | 1 + ...h-creating-an-unbound-windows-forms-datagridview-control.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md index 821b1eca6e..e5095cb443 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md @@ -1,5 +1,6 @@ --- title: How to Create an Unbound Windows Forms DataGridView Control +description: This topic demonstrates on how to create a Windows Forms DataGridView Control. You can use this control to display a small amount of data in a table format without binding it to a data source ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md index cc10d6f8f7..78b462ed4a 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md @@ -1,5 +1,6 @@ --- -title: Walkthrough Creating an Unbound Windows Forms DataGridView Control +title: Creating an Unbound Windows Forms DataGridView Control +description: This topic guides you on how to populate a DataGridView Control and display a small amount of data without binding it to a data source ms.date: "03/30/2017" dev_langs: - "csharp" From 86a3177635a9c7fcb7bc1decd2663e51e008712f Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Fri, 26 Nov 2021 20:22:12 +0530 Subject: [PATCH 03/22] updating unique level 2 headings for us1889327 --- .../how-to-alter-the-typography-of-text.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md index 112bda7db1..94e6fe21b2 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md @@ -10,24 +10,24 @@ helpviewer_keywords: ms.assetid: 19a3b49b-60a2-4c11-a786-e26b4c965588 --- # How-to: Alter the Typography of Text -The following example shows how to set the attribute, using as the example element. +The following example shows how to set the attribute, using as the example element. -## Example - [!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)] +## Example to show how altered and default typographic properties of text render on screen + [!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)] - The following figure shows how this example renders. + The following figure shows how this example renders. - ![Screenshot: Text with altered typography](./media/textelement-typog.png "TextElement_Typog") + ![Screenshot: Text element with altered typography](./media/textelement-typog.png "TextElement_Typog") - In contrast, the following figure shows how a similar example with default typographic properties renders. + In contrast, the following figure shows how a similar example with default typographic properties renders. - ![Screenshot: Text with altered typography](./media/textelement-typog-default.png "TextElement_Typog_Default") + ![Screenshot: Text element with default typography](./media/textelement-typog-default.png "TextElement_Typog_Default") -## Example - The following example shows how to set the property programmatically. +## Example to show how to set typographic property of text programmatically + The following example shows how to set the property programmatically. [!code-csharp[TextElementSnippets#_TextElement_Typog](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml.cs#_textelement_typog)] - [!code-vb[TextElementSnippets#_TextElement_Typog](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TextElementSnippets/visualbasic/window1.xaml.vb#_textelement_typog)] + [!code-vb[TextElementSnippets#_TextElement_Typog](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TextElementSnippets/visualbasic/window1.xaml.vb#_textelement_typog)] ## See also From 30fcd529058fba080cacf58a57b581d9836deac1 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Mon, 29 Nov 2021 06:11:38 +0530 Subject: [PATCH 04/22] Updating unique titles to topics for US1889327 --- ...nbound-windows-forms-datagridview-control.md | 11 ++++++++--- ...nbound-windows-forms-datagridview-control.md | 17 +++++++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md index e5095cb443..5e6bb950da 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md @@ -1,6 +1,8 @@ --- title: How to Create an Unbound Windows Forms DataGridView Control -description: This topic demonstrates on how to create a Windows Forms DataGridView Control. You can use this control to display a small amount of data in a table format without binding it to a data source + +description: Create an unbound Windows Forms DataGridView Control. This control can display a small amount of data in a table format without binding it to a data source + ms.date: "03/30/2017" dev_langs: - "csharp" @@ -12,15 +14,18 @@ helpviewer_keywords: ms.assetid: b5d4b47d-9a28-4d88-9dba-0a3c90fba71d --- # How to: Create an Unbound Windows Forms DataGridView Control + The following code example demonstrates how to populate a control programmatically without binding it to a data source. This is useful when you have a small amount of data that you want to display in a table format. For a complete explanation of this code example, see [Walkthrough: Creating an Unbound Windows Forms DataGridView Control](walkthrough-creating-an-unbound-windows-forms-datagridview-control.md). -## Example +## Example + [!code-csharp[System.Windows.Forms.DataGridViewSimpleUnbound#00](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/CS/simpleunbound.cs#00)] [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#00](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#00)] -## Compiling the Code +## Compiling the Code + This example requires: - References to the System, System.Drawing, and System.Windows.Forms assemblies. diff --git a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md index 78b462ed4a..63eb86259d 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md @@ -1,6 +1,8 @@ --- -title: Creating an Unbound Windows Forms DataGridView Control -description: This topic guides you on how to populate a DataGridView Control and display a small amount of data without binding it to a data source +title: Walkthrough to Populate an Unbound Windows Forms DataGridView Control + +description: You can populate an Unbound Windows Forms DataGridView Control and display a small amount of data without binding it to a data source + ms.date: "03/30/2017" dev_langs: - "csharp" @@ -14,13 +16,14 @@ helpviewer_keywords: ms.assetid: 5a8d6afa-1b4b-4b24-8db8-501086ffdebe --- # Walkthrough: Creating an Unbound Windows Forms DataGridView Control + You may frequently want to display tabular data that does not originate from a database. For example, you may want to show the contents of a two-dimensional array of strings. The class provides an easy and highly customizable way to display data without binding to a data source. This walkthrough shows how to populate a control and manage the addition and deletion of rows in "unbound" mode. By default, the user can add new rows. To prevent row addition, set the property is `false`. To copy the code in this topic as a single listing, see [How to: Create an Unbound Windows Forms DataGridView Control](how-to-create-an-unbound-windows-forms-datagridview-control.md). ## Creating the Form -#### To use an unbound DataGridView control +### To use an unbound DataGridView control 1. Create a class that derives from and contains the following variable declarations and `Main` method. @@ -65,16 +68,18 @@ You may frequently want to display tabular data that does not originate from a d [!code-csharp[System.Windows.Forms.DataGridViewSimpleUnbound#10](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/CS/simpleunbound.cs#10)] [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#10](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#10)] -## Testing the Application +## Testing the Application + You can now test the form to make sure it behaves as expected. -#### To test the form +### To test the form - Press F5 to run the application. You will see a control that displays the songs listed in `PopulateDataGridView`. You can add new rows with the **Add Row** button, and you can delete selected rows with the **Delete Row** button. The unbound control is the data store, and its data is independent of any external source, such as a or an array. -## Next Steps +## Next Steps + This application gives you a basic understanding of the control's capabilities. You can customize the appearance and behavior of the control in several ways: - Change border and header styles. For more information, see [How to: Change the Border and Gridline Styles in the Windows Forms DataGridView Control](change-the-border-and-gridline-styles-in-the-datagrid.md). From ac74b83cd22270ef5223ddafd8bce146d9ef8e9e Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Thu, 2 Dec 2021 08:45:42 +0530 Subject: [PATCH 05/22] Fixing unique titles in topics for US1889327 --- ...ound-windows-forms-datagridview-control.md | 4 +- ...ound-windows-forms-datagridview-control.md | 72 +++++++++---------- .../data-binding-and-windows-forms.md | 12 ++-- .../winforms/windows-forms-data-binding.md | 12 ++-- 4 files changed, 52 insertions(+), 48 deletions(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md index 5e6bb950da..cd59b3e5df 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md @@ -1,8 +1,6 @@ --- title: How to Create an Unbound Windows Forms DataGridView Control - -description: Create an unbound Windows Forms DataGridView Control. This control can display a small amount of data in a table format without binding it to a data source - +description: Create an unbound Windows Forms DataGridView Control. This control can display a small amount of data in a table format without binding it to a data source ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md index 63eb86259d..eeef2a01d5 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md @@ -1,8 +1,6 @@ --- -title: Walkthrough to Populate an Unbound Windows Forms DataGridView Control - +title: Walk-through to Populate an Unbound Windows Forms DataGridView Control description: You can populate an Unbound Windows Forms DataGridView Control and display a small amount of data without binding it to a data source - ms.date: "03/30/2017" dev_langs: - "csharp" @@ -12,85 +10,85 @@ helpviewer_keywords: - "DataGridView control [Windows Forms], unbound data" - "DataGridView control [Windows Forms], displaying data without binding to a data source" - "data [Windows Forms], unbound" - - "walkthroughs [Windows Forms], DataGridView control" + - "walk-throughs [Windows Forms], DataGridView control" ms.assetid: 5a8d6afa-1b4b-4b24-8db8-501086ffdebe --- -# Walkthrough: Creating an Unbound Windows Forms DataGridView Control +# Walk-through: Creating an Unbound Windows Forms DataGridView Control -You may frequently want to display tabular data that does not originate from a database. For example, you may want to show the contents of a two-dimensional array of strings. The class provides an easy and highly customizable way to display data without binding to a data source. This walkthrough shows how to populate a control and manage the addition and deletion of rows in "unbound" mode. By default, the user can add new rows. To prevent row addition, set the property is `false`. +You may frequently want to display tabular data that does not originate from a database. For example, you may want to show the contents of a two-dimensional array of strings. The class provides an easy and highly customizable way to display data without binding to a data source. This walk-through shows how to populate a control and manage the addition and deletion of rows in "unbound" mode. By default, the user can add new rows. To prevent row addition, set the property is `false`. - To copy the code in this topic as a single listing, see [How to: Create an Unbound Windows Forms DataGridView Control](how-to-create-an-unbound-windows-forms-datagridview-control.md). + To copy the code in this topic as a single listing, see [How to: Create an Unbound Windows Forms DataGridView Control](how-to-create-an-unbound-windows-forms-datagridview-control.md). -## Creating the Form +## Creating the Form -### To use an unbound DataGridView control +### To use an unbound DataGridView control -1. Create a class that derives from and contains the following variable declarations and `Main` method. +1. Create a class that derives from and contains the following variable declarations and `Main` method. [!code-csharp[System.Windows.Forms.DataGridViewSimpleUnbound#01](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/CS/simpleunbound.cs#01)] - [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#01](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#01)] + [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#01](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#01)] [!code-csharp[System.Windows.Forms.DataGridViewSimpleUnbound#02](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/CS/simpleunbound.cs#02)] - [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#02](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#02)] + [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#02](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#02)] -2. Implement a `SetupLayout` method in your form's class definition to set up the form's layout. +2. Implement a `SetupLayout` method in your form's class definition to set up the form's layout. [!code-csharp[System.Windows.Forms.DataGridViewSimpleUnbound#20](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/CS/simpleunbound.cs#20)] - [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#20](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#20)] + [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#20](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#20)] -3. Create a `SetupDataGridView` method to set up the columns and properties. +3. Create a `SetupDataGridView` method to set up the columns and properties. This method first adds the control to the form's collection. Next, the number of columns to be displayed is set using the property. The default style for the column headers is set by setting the , , and properties of the returned by the property. - Layout and appearance properties are set, and then the column names are assigned. When this method exits, the control is ready to be populated. + Layout and appearance properties are set, and then the column names are assigned. When this method exits, the control is ready to be populated. [!code-csharp[System.Windows.Forms.DataGridViewSimpleUnbound#30](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/CS/simpleunbound.cs#30)] - [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#30](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#30)] + [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#30](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#30)] -4. Create a `PopulateDataGridView` method to add rows to the control. +4. Create a `PopulateDataGridView` method to add rows to the control. - Each row represents a song and its associated information. + Each row represents a song and its associated information. [!code-csharp[System.Windows.Forms.DataGridViewSimpleUnbound#40](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/CS/simpleunbound.cs#40)] - [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#40](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#40)] + [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#40](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#40)] -5. With the utility methods in place, you can attach event handlers. +5. With the utility methods in place, you can attach event handlers. - You will handle the **Add** and **Delete** buttons' events, the form's event, and the control's event. + You will handle the **Add** and **Delete** buttons' events, the form's event, and the control's event. - When the **Add** button's event is raised, a new, empty row is added to the . + When the **Add** button's event is raised, a new, empty row is added to the . - When the **Delete** button's event is raised, the selected row is deleted, unless it is the row for new records, which enables the user add new rows. This row is always the last row in the control. + When the **Delete** button's event is raised, the selected row is deleted, unless it is the row for new records, which enables the user add new rows. This row is always the last row in the control. - When the form's event is raised, the `SetupLayout`, `SetupDataGridView`, and `PopulateDataGridView` utility methods are called. + When the form's event is raised, the `SetupLayout`, `SetupDataGridView`, and `PopulateDataGridView` utility methods are called. - When the event is raised, each cell in the `Date` column is formatted as a long date, unless the cell's value cannot be parsed. + When the event is raised, each cell in the `Date` column is formatted as a long date, unless the cell's value cannot be parsed. [!code-csharp[System.Windows.Forms.DataGridViewSimpleUnbound#10](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/CS/simpleunbound.cs#10)] - [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#10](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#10)] + [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#10](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#10)] ## Testing the Application - You can now test the form to make sure it behaves as expected. + You can now test the form to make sure it behaves as expected. -### To test the form +### To test the form -- Press F5 to run the application. +- Press F5 to run the application. - You will see a control that displays the songs listed in `PopulateDataGridView`. You can add new rows with the **Add Row** button, and you can delete selected rows with the **Delete Row** button. The unbound control is the data store, and its data is independent of any external source, such as a or an array. + You will see a control that displays the songs listed in `PopulateDataGridView`. You can add new rows with the **Add Row** button, and you can delete selected rows with the **Delete Row** button. The unbound control is the data store, and its data is independent of any external source, such as a or an array. ## Next Steps - This application gives you a basic understanding of the control's capabilities. You can customize the appearance and behavior of the control in several ways: + This application gives you a basic understanding of the control's capabilities. You can customize the appearance and behavior of the control in several ways: -- Change border and header styles. For more information, see [How to: Change the Border and Gridline Styles in the Windows Forms DataGridView Control](change-the-border-and-gridline-styles-in-the-datagrid.md). +- Change border and header styles. For more information, see [How to: Change the Border and Gridline Styles in the Windows Forms DataGridView Control](change-the-border-and-gridline-styles-in-the-datagrid.md). -- Enable or restrict user input to the control. For more information, see [How to: Prevent Row Addition and Deletion in the Windows Forms DataGridView Control](prevent-row-addition-and-deletion-datagridview.md), and [How to: Make Columns Read-Only in the Windows Forms DataGridView Control](how-to-make-columns-read-only-in-the-windows-forms-datagridview-control.md). +- Enable or restrict user input to the control. For more information, see [How to: Prevent Row Addition and Deletion in the Windows Forms DataGridView Control](prevent-row-addition-and-deletion-datagridview.md), and [How to: Make Columns Read-Only in the Windows Forms DataGridView Control](how-to-make-columns-read-only-in-the-windows-forms-datagridview-control.md). -- Check user input for database-related errors. For more information, see [Walkthrough: Handling Errors that Occur During Data Entry in the Windows Forms DataGridView Control](handling-errors-that-occur-during-data-entry-in-the-datagrid.md). +- Check user input for database-related errors. For more information, see [Walk-through: Handling Errors that Occur During Data Entry in the Windows Forms DataGridView Control](handling-errors-that-occur-during-data-entry-in-the-datagrid.md). -- Handle very large data sets using virtual mode. For more information, see [Walkthrough: Implementing Virtual Mode in the Windows Forms DataGridView Control](implementing-virtual-mode-wf-datagridview-control.md). +- Handle very large data sets using virtual mode. For more information, see [Walk-through: Implementing Virtual Mode in the Windows Forms DataGridView Control](implementing-virtual-mode-wf-datagridview-control.md). -- Customize the appearance of cells. For more information, see [How to: Customize the Appearance of Cells in the Windows Forms DataGridView Control](customize-the-appearance-of-cells-in-the-datagrid.md) and [How to: Set Default Cell Styles for the Windows Forms DataGridView Control](how-to-set-default-cell-styles-for-the-windows-forms-datagridview-control.md). +- Customize the appearance of cells. For more information, see [How to: Customize the Appearance of Cells in the Windows Forms DataGridView Control](customize-the-appearance-of-cells-in-the-datagrid.md) and [How to: Set Default Cell Styles for the Windows Forms DataGridView Control](how-to-set-default-cell-styles-for-the-windows-forms-datagridview-control.md). ## See also diff --git a/dotnet-desktop-guide/framework/winforms/data-binding-and-windows-forms.md b/dotnet-desktop-guide/framework/winforms/data-binding-and-windows-forms.md index 3868beea56..e0006939af 100644 --- a/dotnet-desktop-guide/framework/winforms/data-binding-and-windows-forms.md +++ b/dotnet-desktop-guide/framework/winforms/data-binding-and-windows-forms.md @@ -1,5 +1,5 @@ --- -title: Data Binding +title: Data Binding and Windows Forms description: Learn how to bind to an array of values that you calculate at runtime, read from a file, or derive from the values of other controls in Windows Forms. ms.date: "03/30/2017" ms.topic: overview @@ -16,6 +16,7 @@ helpviewer_keywords: ms.assetid: 419aac5e-819b-4aad-88b0-73a2f8c0bd27 --- # Data Binding and Windows Forms + In Windows Forms, you can bind to not just traditional data sources, but also to almost any structure that contains data. You can bind to an array of values that you calculate at run time, read from a file, or derive from the values of other controls. In addition, you can bind any property of any control to the data source. In traditional data binding, you typically bind the display property—for example, the property of a control—to the data source. With the .NET Framework, you also have the option of setting other properties through binding as well. You might use binding to perform the following tasks: @@ -28,7 +29,8 @@ In Windows Forms, you can bind to not just traditional data sources, but also to Essentially, data binding is an automatic way of setting any run-time accessible property of any control on a form. -## Types of Data Binding +## Types of Data Binding + Windows Forms can take advantage of two types of data binding: simple binding and complex binding. Each offers different advantages. |Type of data binding|Description| @@ -36,10 +38,12 @@ In Windows Forms, you can bind to not just traditional data sources, but also to |Simple data binding|The ability of a control to bind to a single data element, such as a value in a column in a dataset table. This is the type of binding typical for controls such as a control or control, which are controls that typically only displays a single value. In fact, any property on a control can be bound to a field in a database. There is extensive support for this feature in Visual Studio.

For more information, see:

- [Interfaces Related to Data Binding](interfaces-related-to-data-binding.md)
- [How to: Navigate Data in Windows Forms](how-to-navigate-data-in-windows-forms.md)
- [How to: Create a Simple-Bound Control on a Windows Form](how-to-create-a-simple-bound-control-on-a-windows-form.md)| |Complex data binding|The ability of a control to bind to more than one data element, typically more than one record in a database. Complex binding is also called list-based binding. Examples of controls that support complex binding are the , , and controls. For an example of complex data binding, see [How to: Bind a Windows Forms ComboBox or ListBox Control to Data](./controls/how-to-bind-a-windows-forms-combobox-or-listbox-control-to-data.md).| -## BindingSource Component +## BindingSource Component + To simplify data binding, Windows Forms enables you to bind a data source to the component and then bind controls to the . You can use the in simple or complex binding scenarios. In either case, the acts as an intermediary between the data source and bound controls providing change notification currency management and other services. -## Common Scenarios That Employ Data Binding +## Common Scenarios That Employ Data Binding + Nearly every commercial application uses information read from data sources of one type or another, usually through data binding. The following list shows a few of the most common scenarios that utilize data binding as the method of data presentation and manipulation. |Scenario|Description| diff --git a/dotnet-desktop-guide/framework/winforms/windows-forms-data-binding.md b/dotnet-desktop-guide/framework/winforms/windows-forms-data-binding.md index db4808877f..1d68859571 100644 --- a/dotnet-desktop-guide/framework/winforms/windows-forms-data-binding.md +++ b/dotnet-desktop-guide/framework/winforms/windows-forms-data-binding.md @@ -1,5 +1,5 @@ --- -title: Data Binding +title: Windows Forms Data Binding Data Binding description: Learn how to use data binding in Windows Forms to display and make changes to information from a data source in controls on the form. ms.date: "03/30/2017" helpviewer_keywords: @@ -10,9 +10,11 @@ helpviewer_keywords: ms.assetid: c3826d8e-ea25-4ad4-a669-45bfb19192aa --- # Windows Forms Data Binding + Data binding in Windows Forms gives you the means to display and make changes to information from a data source in controls on the form. You can bind to both traditional data sources as well as almost any structure that contains data. -## In This Section +## In This Section + [Data Binding and Windows Forms](data-binding-and-windows-forms.md) Provides an overview of data binding in Windows Forms. @@ -48,14 +50,16 @@ Data binding in Windows Forms gives you the means to display and make changes to Also see [Interfaces Related to Data Binding](interfaces-related-to-data-binding.md), [How to: Navigate Data in Windows Forms](how-to-navigate-data-in-windows-forms.md), and [How to: Create a Simple-Bound Control on a Windows Form](how-to-create-a-simple-bound-control-on-a-windows-form.md). -## Reference +## Reference + Describes the class that represents the binding between a bindable component and a data source. Describes the class that encapsulates a data source for binding to controls. -## Related Sections +## Related Sections + [BindingSource Component](./controls/bindingsource-component.md) Contains a list of topics that demonstrate how to use the component. From 4f57f68170e195f4e477039cd5ca4830f3eeefb1 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Fri, 3 Dec 2021 16:30:56 +0530 Subject: [PATCH 06/22] Fixing unique titles for topics for us1889327 --- ...to-create-an-unbound-windows-forms-datagridview-control.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md index cd59b3e5df..616404efc6 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md @@ -15,7 +15,7 @@ ms.assetid: b5d4b47d-9a28-4d88-9dba-0a3c90fba71d The following code example demonstrates how to populate a control programmatically without binding it to a data source. This is useful when you have a small amount of data that you want to display in a table format. - For a complete explanation of this code example, see [Walkthrough: Creating an Unbound Windows Forms DataGridView Control](walkthrough-creating-an-unbound-windows-forms-datagridview-control.md). + For a complete explanation of this code example, see [Walk-through: Creating an Unbound Windows Forms DataGridView Control](walkthrough-creating-an-unbound-windows-forms-datagridview-control.md). ## Example @@ -31,6 +31,6 @@ The following code example demonstrates how to populate a -- [Walkthrough: Creating an Unbound Windows Forms DataGridView Control](walkthrough-creating-an-unbound-windows-forms-datagridview-control.md) +- [Walk-through: Creating an Unbound Windows Forms DataGridView Control](walkthrough-creating-an-unbound-windows-forms-datagridview-control.md) - [Displaying Data in the Windows Forms DataGridView Control](displaying-data-in-the-windows-forms-datagridview-control.md) - [Data Display Modes in the Windows Forms DataGridView Control](data-display-modes-in-the-windows-forms-datagridview-control.md) From 2f2aa256540228f8b0d3b524b2493e14c4b568dc Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Fri, 3 Dec 2021 17:00:45 +0530 Subject: [PATCH 07/22] Fixing unique titles for topics for us1889327 --- ...gh-creating-an-unbound-windows-forms-datagridview-control.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md index eeef2a01d5..482ee2e642 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md @@ -10,7 +10,7 @@ helpviewer_keywords: - "DataGridView control [Windows Forms], unbound data" - "DataGridView control [Windows Forms], displaying data without binding to a data source" - "data [Windows Forms], unbound" - - "walk-throughs [Windows Forms], DataGridView control" + - "walkthroughs [Windows Forms], DataGridView control" ms.assetid: 5a8d6afa-1b4b-4b24-8db8-501086ffdebe --- # Walk-through: Creating an Unbound Windows Forms DataGridView Control From 69258dc700cc3117c8366a4d072006cb3ed0e3e4 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Fri, 3 Dec 2021 17:18:13 +0530 Subject: [PATCH 08/22] updating unique titles in topics for US1889327 --- .../framework/winforms/windows-forms-data-binding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-desktop-guide/framework/winforms/windows-forms-data-binding.md b/dotnet-desktop-guide/framework/winforms/windows-forms-data-binding.md index 1d68859571..b43f6e1e4f 100644 --- a/dotnet-desktop-guide/framework/winforms/windows-forms-data-binding.md +++ b/dotnet-desktop-guide/framework/winforms/windows-forms-data-binding.md @@ -1,5 +1,5 @@ --- -title: Windows Forms Data Binding Data Binding +title: Windows Forms Data Binding description: Learn how to use data binding in Windows Forms to display and make changes to information from a data source in controls on the form. ms.date: "03/30/2017" helpviewer_keywords: From 64becc41dd260b52d7850a0b6509c6496e0ef7bc Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Fri, 3 Dec 2021 17:37:09 +0530 Subject: [PATCH 09/22] updating unique titles in topics for US1889327 --- ...w-to-create-an-unbound-windows-forms-datagridview-control.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md index 616404efc6..72af71c757 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md @@ -26,7 +26,7 @@ The following code example demonstrates how to populate a Date: Fri, 3 Dec 2021 18:49:48 +0530 Subject: [PATCH 10/22] Fixing Duplicate Level 2 headings in this topic for US1889327 --- ...run-procedures-at-set-intervals-with-wf-timer-component.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/run-procedures-at-set-intervals-with-wf-timer-component.md b/dotnet-desktop-guide/framework/winforms/controls/run-procedures-at-set-intervals-with-wf-timer-component.md index 2446395cd1..8e9c570164 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/run-procedures-at-set-intervals-with-wf-timer-component.md +++ b/dotnet-desktop-guide/framework/winforms/controls/run-procedures-at-set-intervals-with-wf-timer-component.md @@ -39,7 +39,7 @@ You might sometimes want to create a procedure that runs at specific time interv 5. At the appropriate time, set the property to `false` to stop the procedure from running again. Setting the interval to `0` does not cause the timer to stop. -## Example +## Example 1: Shows how to track the time of day in oe-second increments This first code example tracks the time of day in one-second increments. It uses a , a , and a component on a form. The property is set to 1000 (equal to one second). In the event, the label's caption is set to the current time. When the button is clicked, the property is set to `false`, stopping the timer from updating the label's caption. The following code example requires that you have a form with a control named `Button1`, a control named `Timer1`, and a control named `Label1`. @@ -145,7 +145,7 @@ private: } ``` -## Example +## Example 2: Shows how to run a procedure every 600 milliseconds until a loop has finished This second code example runs a procedure every 600 milliseconds until a loop has finished. The following code example requires that you have a form with a control named `Button1`, a control named `Timer1`, and a control named `Label1`. From 492e871640319dd5b36af36b554d8cef1b0493cb Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Fri, 3 Dec 2021 19:48:48 +0530 Subject: [PATCH 11/22] Fixing unique level 2 headings in topics for US1889327 --- .../advanced/how-to-alter-the-typography-of-text.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md index 94e6fe21b2..148cb963c6 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md @@ -1,5 +1,6 @@ --- -title: "How-to: Alter the Typography of Text" +title: How-to Alter the Typography of Text +description: This topic shows an example how altered and default typographic properties of text render on screen and how to set typographic property of text programmatically. ms.date: "03/30/2017" dev_langs: - "csharp" @@ -10,9 +11,11 @@ helpviewer_keywords: ms.assetid: 19a3b49b-60a2-4c11-a786-e26b4c965588 --- # How-to: Alter the Typography of Text + The following example shows how to set the attribute, using as the example element. -## Example to show how altered and default typographic properties of text render on screen +## Example 1: Shows how altered and default typographic properties of text render on screen + [!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)] The following figure shows how this example renders. @@ -23,7 +26,8 @@ The following example shows how to set the property programmatically. [!code-csharp[TextElementSnippets#_TextElement_Typog](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml.cs#_textelement_typog)] From 6bf985c6807beedcb9a2d154ec84706e9ccfc1e5 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Fri, 3 Dec 2021 20:35:05 +0530 Subject: [PATCH 12/22] Updating unique titles and level 2 headings in topics for US1889327 --- ...to-create-an-unbound-windows-forms-datagridview-control.md | 4 ++-- ...-creating-an-unbound-windows-forms-datagridview-control.md | 4 ++-- .../wpf/advanced/how-to-alter-the-typography-of-text.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md index 72af71c757..82d0b823cd 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md @@ -15,7 +15,7 @@ ms.assetid: b5d4b47d-9a28-4d88-9dba-0a3c90fba71d The following code example demonstrates how to populate a control programmatically without binding it to a data source. This is useful when you have a small amount of data that you want to display in a table format. - For a complete explanation of this code example, see [Walk-through: Creating an Unbound Windows Forms DataGridView Control](walkthrough-creating-an-unbound-windows-forms-datagridview-control.md). + For a complete explanation of this code example, see [Walkthrough: Creating an Unbound Windows Forms DataGridView Control](walkthrough-creating-an-unbound-windows-forms-datagridview-control.md). ## Example @@ -26,7 +26,7 @@ The following code example demonstrates how to populate a class provides an easy and highly customizable way to display data without binding to a data source. This walk-through shows how to populate a control and manage the addition and deletion of rows in "unbound" mode. By default, the user can add new rows. To prevent row addition, set the property is `false`. diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md index 148cb963c6..034accfee0 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md @@ -14,7 +14,7 @@ ms.assetid: 19a3b49b-60a2-4c11-a786-e26b4c965588 The following example shows how to set the attribute, using as the example element. -## Example 1: Shows how altered and default typographic properties of text render on screen +## Example to show how altered and default typographic properties of text render on screen [!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)] @@ -26,7 +26,7 @@ The following example shows how to set the property programmatically. From 7410ca8b3591e509411269b732e55845c43c5b64 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Sat, 4 Dec 2021 03:51:23 +0530 Subject: [PATCH 13/22] fixing conflicts and markdown errors --- ...ound-windows-forms-datagridview-control.md | 20 ------------- ...ound-windows-forms-datagridview-control.md | 29 ------------------- 2 files changed, 49 deletions(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md index a5fadafe22..87ec24181f 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md @@ -1,12 +1,7 @@ --- title: How to Create an Unbound Windows Forms DataGridView Control -<<<<<<< HEAD -description: Create an unbound Windows Forms DataGridView Control. This control can display a small amount of data in a table format without binding it to a data source -======= - description: Populate an unbound Windows Forms DataGridView Control programmatically and display a small amount of data in a table format without binding it to a data source ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 ms.date: "03/30/2017" dev_langs: - "csharp" @@ -19,35 +14,20 @@ ms.assetid: b5d4b47d-9a28-4d88-9dba-0a3c90fba71d --- # How to: Create an Unbound Windows Forms DataGridView Control -<<<<<<< HEAD The following code example demonstrates how to populate a control programmatically without binding it to a data source. This is useful when you have a small amount of data that you want to display in a table format. -======= -The following code example demonstrates how to populate a control programmatically without binding it to a data source. This is useful when you have a small amount of data that you want to display in a table format. ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 For a complete explanation of this code example, see [Walkthrough: Creating an Unbound Windows Forms DataGridView Control](walkthrough-creating-an-unbound-windows-forms-datagridview-control.md). ## Example -<<<<<<< HEAD -## Example - -======= ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 [!code-csharp[System.Windows.Forms.DataGridViewSimpleUnbound#00](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/CS/simpleunbound.cs#00)] [!code-vb[System.Windows.Forms.DataGridViewSimpleUnbound#00](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewSimpleUnbound/VB/simpleunbound.vb#00)] ## Compiling the Code -<<<<<<< HEAD - This example requires: - -- References to the System, System.Drawing, and System.Windows.Forms assemblies -======= This example requires: - References to the System, System.Drawing, and System.Windows.Forms assemblies. ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 ## See also diff --git a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md index 8c55ba09e9..8916bc7319 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md @@ -1,13 +1,6 @@ --- -<<<<<<< HEAD title: Walkthrough to Populate an Unbound Windows Forms DataGridView Control description: You can populate an Unbound Windows Forms DataGridView Control and display a small amount of data without binding it to a data source -======= -title: Walkthrough to Creating an Unbound Windows Forms DataGridView Control - -description: You can create an Unbound Windows Forms DataGridView Control and display a small amount of data without binding it to a data source - ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 ms.date: "03/30/2017" dev_langs: - "csharp" @@ -22,21 +15,13 @@ ms.assetid: 5a8d6afa-1b4b-4b24-8db8-501086ffdebe --- # Walkthrough: Creating an Unbound Windows Forms DataGridView Control -<<<<<<< HEAD You may frequently want to display tabular data that does not originate from a database. For example, you may want to show the contents of a two-dimensional array of strings. The class provides an easy and highly customizable way to display data without binding to a data source. This walk-through shows how to populate a control and manage the addition and deletion of rows in "unbound" mode. By default, the user can add new rows. To prevent row addition, set the property is `false`. -======= -You may frequently want to display tabular data that does not originate from a database. For example, you may want to show the contents of a two-dimensional array of strings. The class provides an easy and highly customizable way to display data without binding to a data source. This walkthrough shows how to populate a control and manage the addition and deletion of rows in "unbound" mode. By default, the user can add new rows. To prevent row addition, set the property is `false`. ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 To copy the code in this topic as a single listing, see [How to: Create an Unbound Windows Forms DataGridView Control](how-to-create-an-unbound-windows-forms-datagridview-control.md). ## Creating the Form -<<<<<<< HEAD ### To use an unbound DataGridView control -======= -### To use an unbound DataGridView control ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 1. Create a class that derives from and contains the following variable declarations and `Main` method. @@ -85,29 +70,15 @@ You may frequently want to display tabular data that does not originate from a d You can now test the form to make sure it behaves as expected. -<<<<<<< HEAD ### To test the form - Press F5 to run the application. -======= -## Testing the Application - - You can now test the form to make sure it behaves as expected. - -### To test the form ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 You will see a control that displays the songs listed in `PopulateDataGridView`. You can add new rows with the **Add Row** button, and you can delete selected rows with the **Delete Row** button. The unbound control is the data store, and its data is independent of any external source, such as a or an array. ## Next Steps -<<<<<<< HEAD This application gives you a basic understanding of the control's capabilities. You can customize the appearance and behavior of the control in several ways: -======= -## Next Steps - - This application gives you a basic understanding of the control's capabilities. You can customize the appearance and behavior of the control in several ways: ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 - Change border and header styles. For more information, see [How to: Change the Border and Gridline Styles in the Windows Forms DataGridView Control](change-the-border-and-gridline-styles-in-the-datagrid.md). From cf60350ebebbefdefd41a284e8864f91cf2b6def Mon Sep 17 00:00:00 2001 From: Kirupakaran Pandurangan <91305282+kirupap@users.noreply.github.com> Date: Sat, 4 Dec 2021 05:03:53 +0530 Subject: [PATCH 14/22] Update how-to-alter-the-typography-of-text.md Fixed conflict errors --- .../how-to-alter-the-typography-of-text.md | 30 +++++-------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md index cbdbbaf5a4..c9b1405452 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md @@ -13,20 +13,11 @@ ms.assetid: 19a3b49b-60a2-4c11-a786-e26b4c965588 --- # How-to: Alter the Typography of Text -The following example shows how to set the attribute, using as the example element. -<<<<<<< HEAD - -<<<<<<< HEAD -## Example to show how altered and default typographic properties of text render on screen -======= -## Example 1: To show how altered and default typographic properties of text render on screen ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 -======= +The following example shows how to set the attribute, using as the example element. ## Example 1: To show how altered and default typographic properties of text render on screen ->>>>>>> 2b986b11dbdb8aeea83bd22cdba6fa055a9cf6f7 - [!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)] + [!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml) The following figure shows how this example renders. @@ -34,22 +25,15 @@ The following example shows how to set the >>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 -======= + ![Screenshot: Text element with default typography](./media/textelement-typog-default.png "TextElement_Typog_Default") + + ## Example 2: To show how to set typographic property of text programmatically ->>>>>>> 2b986b11dbdb8aeea83bd22cdba6fa055a9cf6f7 The following example shows how to set the property programmatically. - [!code-csharp[TextElementSnippets#_TextElement_Typog](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml.cs#_textelement_typog)] - [!code-vb[TextElementSnippets#_TextElement_Typog](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TextElementSnippets/visualbasic/window1.xaml.vb#_textelement_typog)] + [!code-csharp[TextElementSnippets#_TextElement_Typog](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml.cs#_textelement_typog) + [!code-vb[TextElementSnippets#_TextElement_Typog](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TextElementSnippets/visualbasic/window1.xaml.vb#_textelement_typog) ## See also From e405f2e4e1dea5cad82d7a4921414fe6e7f662c3 Mon Sep 17 00:00:00 2001 From: Kirupakaran Pandurangan <91305282+kirupap@users.noreply.github.com> Date: Sat, 4 Dec 2021 05:09:59 +0530 Subject: [PATCH 15/22] Update how-to-alter-the-typography-of-text.md --- .../wpf/advanced/how-to-alter-the-typography-of-text.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md index c9b1405452..c89edca1de 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md @@ -17,7 +17,7 @@ The following example shows how to set the property programmatically. - [!code-csharp[TextElementSnippets#_TextElement_Typog](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml.cs#_textelement_typog) - [!code-vb[TextElementSnippets#_TextElement_Typog](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TextElementSnippets/visualbasic/window1.xaml.vb#_textelement_typog) + [!code-csharp[TextElementSnippets#_TextElement_Typog](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml.cs#_textelement_typog)] + [!code-vb[TextElementSnippets#_TextElement_Typog](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TextElementSnippets/visualbasic/window1.xaml.vb#_textelement_typog)] ## See also From a8eb67c4b5ab44115f3a6129f76691f3f9668f60 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Sat, 4 Dec 2021 12:09:16 +0530 Subject: [PATCH 16/22] markdown errors --- .../how-to-alter-the-typography-of-text.md | 27 ++++--------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md index cbdbbaf5a4..09a83ff2a7 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md @@ -13,38 +13,21 @@ ms.assetid: 19a3b49b-60a2-4c11-a786-e26b4c965588 --- # How-to: Alter the Typography of Text -The following example shows how to set the attribute, using as the example element. -<<<<<<< HEAD - -<<<<<<< HEAD -## Example to show how altered and default typographic properties of text render on screen -======= -## Example 1: To show how altered and default typographic properties of text render on screen ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 -======= - -## Example 1: To show how altered and default typographic properties of text render on screen ->>>>>>> 2b986b11dbdb8aeea83bd22cdba6fa055a9cf6f7 +The following example shows how to set the attribute, using as the example + +## Example 1: To show how altered and default typographic properties of text render on scre [!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)] - The following figure shows how this example renders. +The following figure shows how this example renders. ![Screenshot: Text element with altered typography](./media/textelement-typog.png "TextElement_Typog") - In contrast, the following figure shows how a similar example with default typographic properties renders. +In contrast, the following figure shows how a similar example with default typographic properties renders. ![Screenshot: Text element with default typography](./media/textelement-typog-default.png "TextElement_Typog_Default") -<<<<<<< HEAD -<<<<<<< HEAD -## Example to show how to set typographic property of text programmatically -======= -## Example 2: To show how to set typographic property of text programmatically ->>>>>>> c37bd7c99bcd5b0a59d4f70aff94cab301d53a02 -======= ## Example 2: To show how to set typographic property of text programmatically ->>>>>>> 2b986b11dbdb8aeea83bd22cdba6fa055a9cf6f7 The following example shows how to set the property programmatically. From cc17f227187f7b52ce5db54db7e67b72e194e674 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Sat, 4 Dec 2021 12:35:52 +0530 Subject: [PATCH 17/22] fixing merging conflict --- .../wpf/advanced/how-to-alter-the-typography-of-text.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md index 3133c4da6d..695b87e910 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md @@ -13,7 +13,6 @@ ms.assetid: 19a3b49b-60a2-4c11-a786-e26b4c965588 --- # How-to: Alter the Typography of Text -<<<<<<< HEAD The following example shows how to set the attribute, using as the example ## Example 1: To show how altered and default typographic properties of text render on scre @@ -21,7 +20,6 @@ The following example shows how to set the attribute, using as the example element. ## Example 1: To show how altered and default typographic properties of text render on screen ->>>>>>> e405f2e4e1dea5cad82d7a4921414fe6e7f662c3 [!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)] @@ -31,13 +29,10 @@ The following figure shows how this example renders. In contrast, the following figure shows how a similar example with default typographic properties renders. -<<<<<<< HEAD ![Screenshot: Text element with default typography](./media/textelement-typog-default.png "TextElement_Typog_Default") ![Screenshot: Text element with default typography](./media/textelement-typog-default.png "TextElement_Typog_Default") - ->>>>>>> e405f2e4e1dea5cad82d7a4921414fe6e7f662c3 ## Example 2: To show how to set typographic property of text programmatically The following example shows how to set the property programmatically. From fa848d4005d245ef5dd355c70bf6b066fba9ff19 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Sun, 5 Dec 2021 12:37:10 +0530 Subject: [PATCH 18/22] Fixing markdown error --- .../wpf/advanced/how-to-alter-the-typography-of-text.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md index 695b87e910..d143547c67 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md @@ -1,6 +1,6 @@ --- title: How-to Alter the Typography of Text -description: To alter the telegraphy of text, set the telegraphy attribute. You can set the typographic property of text programmatically. You can see how altered and default telegraphy properties of text render on screen each with an example. +description: To alter the telegraphy of text, set the telegraphy attribute. You can set the typographic property of text programmatically. ms.date: "03/30/2017" dev_langs: @@ -16,7 +16,7 @@ ms.assetid: 19a3b49b-60a2-4c11-a786-e26b4c965588 The following example shows how to set the attribute, using as the example ## Example 1: To show how altered and default typographic properties of text render on scre -======= + The following example shows how to set the attribute, using as the example element. ## Example 1: To show how altered and default typographic properties of text render on screen From 1b884a606c1f5a7a536ce86b21ddc5da3d50343f Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Sun, 5 Dec 2021 12:43:12 +0530 Subject: [PATCH 19/22] Fixing markdown error --- .../wpf/advanced/how-to-alter-the-typography-of-text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md index d143547c67..0a714733e5 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md @@ -31,7 +31,7 @@ In contrast, the following figure shows how a similar example with default typog ![Screenshot: Text element with default typography](./media/textelement-typog-default.png "TextElement_Typog_Default") - ![Screenshot: Text element with default typography](./media/textelement-typog-default.png "TextElement_Typog_Default") + ![Screenshot: Text element with default typography](./media/textelement-typog-default.png "TextElement_Typog_Default") ## Example 2: To show how to set typographic property of text programmatically From 28d0ecabb4e548dfb59a1c8d2c375cba642932f8 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Mon, 6 Dec 2021 13:55:44 +0530 Subject: [PATCH 20/22] fixing peer review comments --- ...n-unbound-windows-forms-datagridview-control.md | 2 +- ...res-at-set-intervals-with-wf-timer-component.md | 14 ++++++++------ ...n-unbound-windows-forms-datagridview-control.md | 6 +++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md index 87ec24181f..b3926a5038 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md @@ -27,7 +27,7 @@ The following code example demonstrates how to populate a component makes such a procedure possible. +The component makes both procedures possible. You can create a procedure that runs at specific time intervals until a loop has finished. You can also create a procedure that runs when a set time interval has elapsed. See Examples 1 and 2 below. This component is designed for a Windows Forms environment. If you need a timer that is suitable for a server environment, see [Introduction to Server-Based Timers](/previous-versions/visualstudio/visual-studio-2008/tb9yt5e6(v=vs.90)). @@ -26,18 +26,20 @@ You might sometimes want to create a procedure that runs at specific time interv ## To run a procedure at set intervals with the Timer component -1. Add a to your form. See the following Example section for an illustration of how to do this programmatically. Visual Studio also has support for adding components to a form. Also see [How to: Add Controls Without a User Interface to Windows Forms](how-to-add-controls-without-a-user-interface-to-windows-forms.md). +1. Add a to your form. See + + Visual Studio also has support for adding components to a form. See [How to: Add Controls Without a User Interface to Windows Forms](how-to-add-controls-without-a-user-interface-to-windows-forms.md). -2. Set the property (in milliseconds) for the timer. This property determines how much time will pass before the procedure is run again. +1. Set the property (in milliseconds) for the timer. This property determines how much time will pass before the procedure is run again. > [!NOTE] > The more often a timer event occurs, the more processor time is used in responding to the event. This can slow down overall performance. Do not set a smaller interval than you need. -3. Write appropriate code in the event handler. The code you write in this event will run at the interval specified in the property. +1. Write appropriate code in the event handler. The code you write in this event will run at the interval specified in the property. -4. Set the property to `true` to start the timer. The event will begin to occur, running your procedure at the set interval. +1. Set the property to `true` to start the timer. The event will begin to occur, running your procedure at the set interval. -5. At the appropriate time, set the property to `false` to stop the procedure from running again. Setting the interval to `0` does not cause the timer to stop. +1. At the appropriate time, set the property to `false` to stop the procedure from running again. Setting the interval to `0` does not cause the timer to stop. ## Example 1: Shows how to track the time of day in oe-second increments diff --git a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md index 8916bc7319..fb9727feb3 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/walkthrough-creating-an-unbound-windows-forms-datagridview-control.md @@ -15,7 +15,7 @@ ms.assetid: 5a8d6afa-1b4b-4b24-8db8-501086ffdebe --- # Walkthrough: Creating an Unbound Windows Forms DataGridView Control -You may frequently want to display tabular data that does not originate from a database. For example, you may want to show the contents of a two-dimensional array of strings. The class provides an easy and highly customizable way to display data without binding to a data source. This walk-through shows how to populate a control and manage the addition and deletion of rows in "unbound" mode. By default, the user can add new rows. To prevent row addition, set the property is `false`. +You may frequently want to display tabular data that does not originate from a database. For example, you may want to show the contents of a two-dimensional array of strings. The class provides an easy and highly customizable way to display data without binding to a data source. This walk-through shows how to populate a control and manage the addition and deletion of rows in "unbound" mode. By default, the user can add new rows. To prevent row addition, set the property to `false`. To copy the code in this topic as a single listing, see [How to: Create an Unbound Windows Forms DataGridView Control](how-to-create-an-unbound-windows-forms-datagridview-control.md). @@ -72,9 +72,9 @@ You may frequently want to display tabular data that does not originate from a d ### To test the form -- Press F5 to run the application. +Press F5 to run the application. - You will see a control that displays the songs listed in `PopulateDataGridView`. You can add new rows with the **Add Row** button, and you can delete selected rows with the **Delete Row** button. The unbound control is the data store, and its data is independent of any external source, such as a or an array. +You will see a control that displays the songs listed in `PopulateDataGridView`. You can add new rows with the **Add Row** button, and you can delete selected rows with the **Delete Row** button. The unbound control is the data store, and its data is independent of any external source, such as a or an array. ## Next Steps From 705b0147a50d748183c82088eb14f6f3d56cd659 Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Mon, 6 Dec 2021 14:18:47 +0530 Subject: [PATCH 21/22] fixing peer review comments --- ...run-procedures-at-set-intervals-with-wf-timer-component.md | 4 +--- .../wpf/advanced/how-to-alter-the-typography-of-text.md | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/run-procedures-at-set-intervals-with-wf-timer-component.md b/dotnet-desktop-guide/framework/winforms/controls/run-procedures-at-set-intervals-with-wf-timer-component.md index 4690b758fe..58489ae1fb 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/run-procedures-at-set-intervals-with-wf-timer-component.md +++ b/dotnet-desktop-guide/framework/winforms/controls/run-procedures-at-set-intervals-with-wf-timer-component.md @@ -26,9 +26,7 @@ The component makes both procedures possible. ## To run a procedure at set intervals with the Timer component -1. Add a to your form. See - - Visual Studio also has support for adding components to a form. See [How to: Add Controls Without a User Interface to Windows Forms](how-to-add-controls-without-a-user-interface-to-windows-forms.md). +1. Add a to your form. See Example 3: To show how to set typographic property of text programmatically [How-to: Alter the Typography of Text](../../wpf/advanced/how-to-alter-the-typography-of-text.md). Visual Studio also has support for adding components to a form. See [How to: Add Controls Without a User Interface to Windows Forms](how-to-add-controls-without-a-user-interface-to-windows-forms.md). 1. Set the property (in milliseconds) for the timer. This property determines how much time will pass before the procedure is run again. diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md index 0a714733e5..5220ea7373 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-alter-the-typography-of-text.md @@ -19,7 +19,7 @@ The following example shows how to set the attribute, using as the example element. -## Example 1: To show how altered and default typographic properties of text render on screen +## Example 2: To show how altered and default typographic properties of text render on screen [!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)] @@ -33,7 +33,7 @@ In contrast, the following figure shows how a similar example with default typog ![Screenshot: Text element with default typography](./media/textelement-typog-default.png "TextElement_Typog_Default") -## Example 2: To show how to set typographic property of text programmatically +## Example 3: To show how to set typographic property of text programmatically The following example shows how to set the property programmatically. From e12d950c121de0ac16c8e7a1cb81b7abdb5b0fce Mon Sep 17 00:00:00 2001 From: kirupap <91305282+kirupap@users.noreply.github.com> Date: Mon, 6 Dec 2021 19:27:21 +0530 Subject: [PATCH 22/22] Fixing conflicts in PR for US1889327 --- ...-create-an-unbound-windows-forms-datagridview-control.md | 4 ++-- dotnet-desktop-guide/framework/wpf/advanced/documents.md | 2 +- .../wpf/advanced/how-to-alter-the-typography-of-text.md | 6 +++--- dotnet-desktop-guide/framework/wpf/advanced/typography.md | 4 +++- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md index b3926a5038..4bb6d83c68 100644 --- a/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md +++ b/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md @@ -16,7 +16,7 @@ ms.assetid: b5d4b47d-9a28-4d88-9dba-0a3c90fba71d The following code example demonstrates how to populate a control programmatically without binding it to a data source. This is useful when you have a small amount of data that you want to display in a table format. - For a complete explanation of this code example, see [Walkthrough: Creating an Unbound Windows Forms DataGridView Control](walkthrough-creating-an-unbound-windows-forms-datagridview-control.md). +For a complete explanation of this code example, see [Walkthrough: Creating an Unbound Windows Forms DataGridView Control](walkthrough-creating-an-unbound-windows-forms-datagridview-control.md). ## Example @@ -25,7 +25,7 @@ The following code example demonstrates how to populate a attribute, using as the example +The following example shows how to set the attribute, using as the example element. -## Example 1: To show how altered and default typographic properties of text render on scre +## Example 1: To show how altered and default typographic properties of text render on screen The following example shows how to set the attribute, using as the example element. diff --git a/dotnet-desktop-guide/framework/wpf/advanced/typography.md b/dotnet-desktop-guide/framework/wpf/advanced/typography.md index 933537d7be..2ce16f76e8 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/typography.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/typography.md @@ -10,9 +10,11 @@ helpviewer_keywords: ms.assetid: e4ef38db-b7d1-4bda-87ab-8bb738440ddc --- # Typography + [!INCLUDE[TLA#tla_winclient](../../../includes/tlasharptla-winclient-md.md)] includes support for rich presentation of text content. Text in [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] is rendered using Microsoft ClearType, which enhances the clarity and readability of text. [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] also supports OpenType fonts, which provide additional capabilities beyond those defined by the TrueType® format. -## In This Section +## In This Section + [Typography in WPF](typography-in-wpf.md) [ClearType Overview](cleartype-overview.md) [ClearType Registry Settings](cleartype-registry-settings.md)