Im am trying to get the ordering right with a DataGridView with the order for example Id, Name, Description , Include. But when i run the included sample I get the order Id, Name, Include, description and im not sure why...
InitializeComponent();
{
ColumnId, ColumnName, ColumnDesc, ColumnInc
});
ColumnId.HeaderText =
ColumnId.DataPropertyName =
ColumnId.DisplayIndex = 0;
ColumnName.HeaderText =
ColumnName.DataPropertyName =
ColumnName.DisplayIndex = 1;
ColumnDesc.HeaderText =
ColumnDesc.DataPropertyName =
ColumnDesc.DisplayIndex = 2;
ColumnInc.HeaderText =
ColumnInc.DisplayIndex = 3;