急急急!datagridview问题?在线等待...谢谢大家
为何我用
this.dataGridView1.Columns[0].SortMode = DataGridViewColumnSortMode.NotSortable;
第一列的列标头不能正常显示,比如说:编号,只显示个'编'字,
我想锁定所有列标头,用
for (int i = 0; i < this.dataGridView1.Columns.Count; i++)
{
this.dataGridView1.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable;
}
这样写可不可以?
我运行时显示不正常,运行一半时会报异常,
try{}
catch (Exception ex)
{
MessageBox.Show(ex.StackTrace + ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
这个提示信息它说没有实例化
大家帮帮我...急啊,在线等待......