Hi,
Try with:
adressRow.RowError = adressDataset.adressTable.emailaddressColumn.columnname
where addressDataset is an instance of your strong typed dataset.
However, this won't work if your dataset is defined in another assembly...
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com
"moguls" <(E-Mail Removed)> wrote in message
news:EBC153F2-735B-4FCD-89D3-(E-Mail Removed)...
> Is there a way to get the column names in a strongly typed dataset. If I
> have a dataset and want to set RowError to the name of the column without
> hardcoding it. I want a compile time error if the name of the column does
> not
> exist in the dataset.
>
> If I have a column named emailaddress in Dataset adressDataset I want to
> do
> something like this
>
> adressRow.RowError = adressDataset.adressTable.emailaddress.columnname
>