我想在dataGrid中一次把数据显示完,我用的是下面语句,但总是有几条记录显示不完:
dataGrid1.Height=dataGrid1.PreferredRowHeight*ds.Tables["View售票情况"].Rows.Count;