DataGridView does not display the cell data
The code below when ran does not display the data, do you know what is wrong?
DataGridViewRow row = new DataGridViewRow()开发者_JAVA技巧;
row.SetValues(
metaData.Offset.ToString("X2"),
metaData.Length,
metaData.Format,
metaData.Description);
dataGridView.Rows.Add(row);
Instead of creating a new DataGridViewRow
, maybe you can try
dataGridView.Rows.Add(metaData.Offset.ToString("X2"),
metaData.Length,
metaData.Format,
metaData.Description);
精彩评论