System.Web.UI.WebControls.GridView.CreateEmptyrRow C# (CSharp) Method

CreateEmptyrRow() private method

private CreateEmptyrRow ( int fieldCount ) : GridViewRow
fieldCount int
return GridViewRow
		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;
		}