private void RemoveNullRows()
{
bool isNullRow=true;
for (int i = this.RowCount - 1; i >= 0; i++)
{
foreach (DataGridViewCell cell in this.Rows[i].Cells)
{
if (cell.Value != null && string.IsNullOrEmpty(cell.Value.Str()) == false)
{
isNullRow = false;
break;
}
}
if (isNullRow == true)
{
this.Rows.RemoveAt(i);
}
isNullRow = true;
}
}