Thursday, August 14, 2008

How To Remove Empty Rows In DataTable

int i = 0;
while (i <= datatableid.Rows.Count - 1)
if (datatableid.Rows[i]["ColumnName"].ToString().Trim() == string.Empty)
i += 1;


swapnaja said...

This Code is Dammmmmmmmn Good

Dhaval said...

Thanks a lot buddy!! Saved my day!

Creative Commons License
Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.