Internetwork Consulting LLC
3880 Greenhouse Road #421
Houston, TX 77084

832-606-3300

sales@internetworkconsulting.net
Custom Software Development - Computer Repair
 

DataDridView DisplayOrder Not Working

When setting the column’s DisplayIndex in a data grid view, some columns were out of order. To fix the issue, I had to set AutoGenerateColumns to true before setting the data source, and to FALSE after.

For Example:

dgvReservedStalls.AutoGenerateColumns = True
dgvReservedStalls.DataSource = clsReservedStalls.LoadDataTable()
dgvReservedStalls.AutoGenerateColumns = False