473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Adding multiple enum items

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
=============
Nov 16 '05 #1
2 1615
"Mark Broadbent" wrote :
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;

--
Francois Beaussier
Fr******@3ie.org.remove
Nov 16 '05 #2
Thanks again Francois. Gold Star for you!

--
Br,
Mark Broadbent
mcdba , mcse+i
=============
"Francois Beaussier" <Fr******@3ie.org.invalid> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"Mark Broadbent" wrote :
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;

--
Francois Beaussier
Fr******@3ie.org.remove

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ben Hallert | last post by:
Hi guys, I'm trying to figure out what bone headed mistake I made on something I put together. I've got a form (named 'context') that has a variable number of select-multiple inputs on it. ...
1
by: PA | last post by:
I am using .NET web aplication and MSDE 2000. I receive new record in XML format which I want to add into MSDE 2000. I am doing it as below. Private Sub InsertNew(ByVal sData1 As String) Dim SR1...
2
by: Rene | last post by:
Say that I create a combobox with pull down items that map directly to an enum. For example the dropdown items could be "Up", "Down", "Left" and "Right" and the enum could be declare as: public...
8
by: CK | last post by:
Hi All, Good morning. I had a quick question. I have a public Enum. During page load I want to loop thru the Enum and put those as items in an asp:dropdownList. Does anyone have any sample code to...
7
by: Harris | last post by:
Dear all, I have the following codes: ====== public enum Enum_Value { Value0 = 0, Value1 = 10,
8
by: tony | last post by:
Hello! I have below a for loop and a switch in the for loop. I have also a enum called colBlowStep with some values. I have also an array called m_columnBlowStep with some strings. All items in...
3
by: Jens Müller | last post by:
I have a file here with several enums: #ifndef PLANARSEP_OPTIMIZE_H #define PLANARSEP_OPTIMIZE_H enum fund_cycle_behavior_t {PASS_MODE_FIRST, PASS_MODE_BEST, PASS_MODE_ALL};
2
by: =?Utf-8?B?UmljaGFyZCBUb2NjaQ==?= | last post by:
I'm learning Visual Basic using the .Net Framework 2.0. I have been playing with consuming web services in applications. I am using a free web service that gives me information for currency...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.