All Day, I Dream about Codes
The content of this post has been moved here. Please check this link to view the contents.
Sorry for the inconvenience.
Thanks!
Thanks, it helped me.
Good to Know that it helped you.But, still I don't know whether any better method is available than this.I mean, any one-line code, etc.Thanks:)
Plz dont forget to call AcceptChanges() after removing rowif (isEmpty == true) 33: { 34: dt.Rows.RemoveAt(i); dt.AcceptChanges(); 35: i--; 36: }
I think that you can create a dataview from the datatable and filter the rows on the condition ' id = null and name = null' - one step no iteration
Post a Comment
4 comments:
Thanks, it helped me.
Good to Know that it helped you.
But, still I don't know whether any better method is available than this.
I mean, any one-line code, etc.
Thanks
:)
Plz dont forget to call AcceptChanges() after removing row
if (isEmpty == true)
33: {
34: dt.Rows.RemoveAt(i);
dt.AcceptChanges();
35: i--;
36: }
I think that you can create a dataview from the datatable and filter the rows on the condition ' id = null and name = null' - one step no iteration
Post a Comment