StatCounter

View My Stats

Tuesday, February 5, 2008

To Add Empty Row in DataTable in ADO.NET

To Add Empty Row in DataTable in ADO.NET


if ((Ds.Tables[0].Rows.Count == 0))
{
Ds.Tables[0].Rows.Add(Ds.Tables[0].NewRow());
}


Ds-DataSet Name that containes Tables

No comments: