-
Couldn't load subscription status.
- Fork 183
Fix build validation warning and suggestions in topics - unique titles for US1889327 #1229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0242bc1
updating unique titles to topics for us1889327
kirupap ad120e7
updating unique titles to topics for us1889327
kirupap 86a3177
updating unique level 2 headings for us1889327
kirupap 30fcd52
Updating unique titles to topics for US1889327
kirupap d97e7ac
Updating unique titles to topics for US1889327
kirupap 3855c32
updating unique level 2 headings to topics for us1889327
kirupap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,8 @@ | ||
| --- | ||
| title: Create an Unbound DataGridView Control | ||
| 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 | ||
|
|
||
|
Comment on lines
+3
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
| ms.date: "03/30/2017" | ||
| dev_langs: | ||
| - "csharp" | ||
|
|
@@ -13,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 <xref:System.Windows.Forms.DataGridView> class provides an easy and highly customizable way to display data without binding to a data source. This walkthrough shows how to populate a <xref:System.Windows.Forms.DataGridView> 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 <xref:System.Windows.Forms.DataGridView.AllowUserToAddRows%2A> 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 <xref:System.Windows.Forms.Form> and contains the following variable declarations and `Main` method. | ||
|
|
||
|
|
@@ -64,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 <xref:System.Windows.Forms.DataGridView> 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 <xref:System.Windows.Forms.DataGridView> control is the data store, and its data is independent of any external source, such as a <xref:System.Data.DataSet> or an array. | ||
|
|
||
| ## Next Steps | ||
| ## Next Steps | ||
|
|
||
| This application gives you a basic understanding of the <xref:System.Windows.Forms.DataGridView> control's capabilities. You can customize the appearance and behavior of the <xref:System.Windows.Forms.DataGridView> 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). | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,8 @@ | ||
| --- | ||
| title: "How-to: Alter the Typography of Text" | ||
| 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. | ||
|
|
||
|
Comment on lines
+3
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here |
||
| ms.date: "03/30/2017" | ||
| dev_langs: | ||
| - "csharp" | ||
|
|
@@ -10,24 +13,27 @@ helpviewer_keywords: | |
| ms.assetid: 19a3b49b-60a2-4c11-a786-e26b4c965588 | ||
| --- | ||
| # How-to: Alter the Typography of Text | ||
| The following example shows how to set the <xref:System.Windows.Documents.TextElement.Typography%2A> attribute, using <xref:System.Windows.Documents.Paragraph> as the example element. | ||
|
|
||
| The following example shows how to set the <xref:System.Windows.Documents.TextElement.Typography%2A> attribute, using <xref:System.Windows.Documents.Paragraph> as the example element. | ||
|
|
||
| ## Example | ||
| [!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)] | ||
| ## Example 1: 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. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| 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. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| ## Example | ||
| The following example shows how to set the <xref:System.Windows.Controls.TextBox.Typography%2A> property programmatically. | ||
| ## Example 2: To show how to set typographic property of text programmatically | ||
|
|
||
| The following example shows how to set the <xref:System.Windows.Controls.TextBox.Typography%2A> 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 | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kirupap Right after I merged I noticed this blank line. Generally there aren't any blank lines between metadata items. Can you fix these up?