sometimes we need the columns width changed when the text withs chaging
we
this.gridView.OptionsMenu.EnableColumnMenu = true;//与下面CalcColumnBestWidth使得列宽可以动态变化
for (int i = 0; i < ds.Tables[0].Columns.Count; i++)
{
this.gridView.Columns[i].Width = this.gridView.CalcColumnBestWidth(this.gridView.Columns[i]) + 5;
}