FALSE. Why does it matter?
Because if GridView.AutoGenerateColumns is set to true you can change
the order of the columns in the datasource. If AutoGenerateColumns is
false, you can change your columns when you build and bind the grid
from the code. For example,
DataTable dt = new DataTable();
dt.Columns.Add("Column1", typeof(string));
dt.Columns.Add("Column2", typeof(string));
while (dr.Read())
dt.Rows.Add(new object[] { dr[0], dr[1] });
Grid1.DataSource = dt;
Grid2.DataBind();
This would give you a grid with Column1 and Column2. Once you changed
the order you can do following
If (order_changed)
{
dt.Columns.Add("Column2", typeof(string));
dt.Columns.Add("Column1", typeof(string));
while (dr.Read())
dt.Rows.Add(new object[] { dr[1], dr[0] });
}
else
{
dt.Columns.Add("Column1", typeof(string));
dt.Columns.Add("Column2", typeof(string));
while (dr.Read())
dt.Rows.Add(new object[] { dr[0], dr[1] });
}
Now you would get a grid with Column2 and Column1
Is it what you want?