Select the DataGridView control, select the Colums property item in the property click, edit the column of the DataGridView control, you can add more than one column item through the column editor, where the Headtext of the column properties is displayed externally, which is presented to the user, Name is used to name the Column object, and DataPropertyName is used to specify that you bind the column of the data source to that column, that is, the column property can bind the specified data to the column in DataGridView. For example, to specify the DataPropertyName column property as a column name for the data source, such as "UserName" in the data source, specify the DataPropertyName column property as "UserName" and the data source " The UserName column corresponds to the column specified in DataGridView, and also to the data column specified for the column bindings in DataGridView. The display name of the column has the column property headtext specified.