Tag Archives: unbound

Format DataGridView columns in C#

This example shows how you can format DataGridView columns to make them display values properly. The control is actually pretty smart and will usually do the right thing if you give it the right data. For example, if a column … Continue reading

Posted in controls | Tagged , , , , , , , , , , , | 2 Comments

Programmatically add new rows to an unbound DataGridView control in C#

Before writing code, you need to prepare the DataGridView control. Add the control to the form and select it. Click its Smart Tag and then click the Edit Columns link. Add the columns that you need and set their HeaderText … Continue reading

Posted in controls | Tagged , , , , , , , , , | 13 Comments