How to do it?
What I have tried:
if (ds.Tables[s].Rows[i][Columncountvalue + 19].ToString().Trim() == "")the above code is i tried to fill the empty column as "ND" in dataset data table but below error is occurs
{
ds.Tables[s].Rows[i][Columncountvalue + 19].ToString().Trim().Replace("", "ND");
}
string cannot be of zero length. parameter name oldvalue

Mangesh GPosted Jan 13, 2017, 3:06 AM
{
if (dr["UseColumnName"]=="")
{
dr["UseColumnName"] = "ND";
}
}
ds.Tables[0].AcceptChanges();
RajaPosted Jan 13, 2017, 5:34 AM
Mangesh Gaherwar
Thank YOuJasbeer SinghPosted Jan 13, 2017, 4:32 AM
RajaPosted Jan 13, 2017, 1:45 AM
Mangesh Gaherwar
Mangesh GPosted Jan 13, 2017, 1:32 AM
ds.Tables[s].Rows[i][Columncountvalue + 19].ToString().Trim().Replace(" ", "ND");