Typed DataSets and Internal DataColumn

P

peter.moss

Somebody help me.

I have a project where I am using a typed dataset generated in VS 2003.

My issue relates to the typed DataColumns. Why are they marked as
internal? Surely the point of a typed dataset is to make it type safe
and I can't get to the type safe columns because they're internal! Is
this a mistake? Is there anyway in the DS schema to change this
(because if I do it manually it autoregenarates and I can't compile).

It is most annoying, and I feel I'm going backwards by using the
DataColumns of a typed dataset in an untyped way. I want to go
TypedDataSet.TypedDataTable.MyTypedColumn but instead I have to go
TypedDataSet.TypedDataTable["MyTypedColumnName"].

Anyone know of the solution to what must be a mistake.
 
M

Mark Ashton

In V2.0 you can workaround this easier. With V.1 you can either, keep your
own cache of the DataColumns or copy the generated file - modify it and
build that instead of the autogenerated one.
 
R

RYoung

Heres a workaround:

TypedDataSet.TypeDataTable[TypedDataColumn.ColumnName]

ProductsDataSet.Products[ProductIDColumn.ColumnName];

Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top