Home All Groups Group Topic Archive Search About

Clear column in a Data Table

Author
4 Jun 2006 9:44 PM
melton9
I've gone through the forms and can't seem to find anything on this, so
either its really easy or its impossible.  Anyway I have a datatable
with maybe 5-6 columns, and I was wondering if there is a simple way to
clear all the values out of a single column.  I could loop it through,
but that seems like the long way around.

Author
5 Jun 2006 6:29 AM
Cor Ligthert [MVP]
Melton,

Just reading your message assuming that it is not a datatable in a strongly
typed dataset

Remove the column and add it again.

Never tried, just an idea while reading your question so you have to try it
yourself.

I hope this helps,

Cor

<melt***@hotmail.com> schreef in bericht
Show quoteHide quote
news:1149457469.946506.225380@j55g2000cwa.googlegroups.com...
> I've gone through the forms and can't seem to find anything on this, so
> either its really easy or its impossible.  Anyway I have a datatable
> with maybe 5-6 columns, and I was wondering if there is a simple way to
> clear all the values out of a single column.  I could loop it through,
> but that seems like the long way around.
>