AutoGenerateColumns is a GridView/DataGrid property that helps create columns automatically.
AutoGenerateColumns is a GridView/DataGrid property that helps create columns automatically. When the AutoGenerateColumns property is set to true, an AutoGeneratedField object is automatically created for each field in the data source. Each field is then displayed as a column in the GridView control in the order that the fields appear in the data source. This option provides a convenient way to display every field in the data source; however, you have limited control of how an automatically generated column field is displayed or behaves.