Actually, Kevin ... your answer *WAS* way better and correct.
Sorry Mike, but your syntax won't cut it (unless you're using a Typed DataSet where you have a DataTable named table), but for a plain old run of the mill DataSet, it needs to be:
DataSet.Tables["MyTable"].Columns.Count
DataSet.Tables[0].Columns.Count
~~Bonnie
>
In a datatable? dataset.table.columns.count >
>Jeez, that was SO MUCH BETTER than my reply!!! (haha, just kidding)
>
>your friend,
>Tracy-in-a-bad-mood