How to display a data in dspace control desk how to#
How to: Autogenerate Columns in a Data-Bound Windows Forms DataGridView Controlĭescribes how to automatically generate columns based on a bound data source. How to: Bind Data to the Windows Forms DataGridView Controlĭescribes how to populate the control with data by binding it to a BindingSource that contains information pulled from a database. Walkthrough: Creating an Unbound Windows Forms DataGridView Controlĭescribes how to manually populate the control with data. In This Sectionĭata Display Modes in the Windows Forms DataGridView Controlĭescribes the options for populating the control with data.ĭata Formatting in the Windows Forms DataGridView Controlĭescribes the options for formatting cell display values. You can also add unbound columns to display supplemental data that does not come from the data source.Īdditionally, you can display your data using standard formats (such as currency format), or you can customize the display formatting to present your data however you need to (such as changing the background color for negative numbers, or replacing string values with corresponding images). If these columns do not appear just as you want them to, you can hide, remove, or rearrange them. When you bind the control to a data source, you can generate columns automatically based on the schema of the data source. Alternatively, you can add rows and columns to the control and manually populate it with data. The DataGridView control is used to display data from a variety of external data sources.