GridViewRow CreateEmptyrRow (int fieldCount)
{
if (emptyDataTemplate == null && String.IsNullOrEmpty (EmptyDataText))
return null;
GridViewRow row = CreateRow (-1, -1, DataControlRowType.EmptyDataRow, DataControlRowState.Normal);
TableCell cell = new TableCell ();
cell.ColumnSpan = fieldCount;
if (emptyDataTemplate != null)
emptyDataTemplate.InstantiateIn (cell);
else
cell.Text = EmptyDataText;
row.Cells.Add (cell);
return row;
}