Adding multiple enum items

M

Mark Broadbent

probably simple but need quick answer if possible. How do I add multiple
enum values to a particular property

e.g. in Vb you would have added them (bit like)
myDataView.RowStateFilter = DataViewRowState.CurrentRows +
DataViewRowState.ModifiedOriginal;

Thanks in advance.
--


Br,
Mark Broadbent
mcdba , mcse+i
=============
 
F

Francois Beaussier

:
probably simple but need quick answer if possible. How do I add multiple
enum values to a particular property

e.g. in Vb you would have added them (bit like)
myDataView.RowStateFilter = DataViewRowState.CurrentRows +
DataViewRowState.ModifiedOriginal;

in C# you can use :

myDataView.RowStateFilter = DataViewRowState.CurrentRows |
DataViewRowState.ModifiedOriginal;
 
M

Mark Broadbent

Thanks again Francois. Gold Star for you!

--


Br,
Mark Broadbent
mcdba , mcse+i
=============
 

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

Similar Threads


Top