The column name of the datagridview control corresponds to the column name in the DataSet.
Select the DataGridView control, select Colums attribute items, and click to edit the columns of the DataGridView control. You can add multiple column items in the column Editor, where HeadText in the column attribute is displayed externally, that is, the Name is used to Name the column object, and DataPropertyName is used to specify the column to which the data source is bound, this column attribute can bind the specified data to the column in The DataGridView. Specifically, you only need to specify the attribute of the DataPropertyName column as a column name of the data source. For example, a column in the data source is "UserName ", if the attribute of the DataPropertyName column is specified as "UserName", the data corresponding to the "UserName" column in the data source can be bound to the specified column in The DataGridView, it also binds the specified data column to the column in The DataGridView. You can specify the Column Display name with the column attribute HeadText.