473,405 Members | 2,415 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,405 software developers and data experts.

not equal

DataRow[] UGrows = db.dataSetUsers.UsersGroups.Select("UserID ='" +
UserID.ToString() + "'" );

foreach ( DataSetUsers.UsersGroupsRow row in UGrows )

{

DataSetUsers.GroupsRow group =

db.dataSetUsers.Groups.FindByGroupID( row.GroupID );

if ( group != null )

{
*** sFilter += "GroupID =' " + group.GroupID.ToString () + "'";

gridGroups.RowFilter = sFilter ;

}

sFilter += " OR ";

}

*** How to write this part of the code so that GroupID is NOT EQUAL to it's
expresion ?

Hrcko
Nov 17 '05 #1
2 3829
Hrvoje,

I believe you can use "<>" instead of "=".

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:da**********@ss405.t-com.hr...
DataRow[] UGrows = db.dataSetUsers.UsersGroups.Select("UserID ='" +
UserID.ToString() + "'" );

foreach ( DataSetUsers.UsersGroupsRow row in UGrows )

{

DataSetUsers.GroupsRow group =

db.dataSetUsers.Groups.FindByGroupID( row.GroupID );

if ( group != null )

{
*** sFilter += "GroupID =' " + group.GroupID.ToString () + "'";

gridGroups.RowFilter = sFilter ;

}

sFilter += " OR ";

}

*** How to write this part of the code so that GroupID is NOT EQUAL to
it's expresion ?

Hrcko

Nov 17 '05 #2
I tried this, but it doesn't work.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:e9**************@TK2MSFTNGP10.phx.gbl...
Hrvoje,

I believe you can use "<>" instead of "=".

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:da**********@ss405.t-com.hr...
DataRow[] UGrows = db.dataSetUsers.UsersGroups.Select("UserID ='" +
UserID.ToString() + "'" );

foreach ( DataSetUsers.UsersGroupsRow row in UGrows )

{

DataSetUsers.GroupsRow group =

db.dataSetUsers.Groups.FindByGroupID( row.GroupID );

if ( group != null )

{
*** sFilter += "GroupID =' " + group.GroupID.ToString () + "'";

gridGroups.RowFilter = sFilter ;

}

sFilter += " OR ";

}

*** How to write this part of the code so that GroupID is NOT EQUAL to
it's expresion ?

Hrcko


Nov 17 '05 #3

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

Similar topics

5
by: William Payne | last post by:
Hi, I was going through some old code of mine and spotted this: if(i == 16 || i == 32 || i == 48 || i == 64 || i == 80 || i == 96 || i == 112 || i == 128 || i == 144 || i == 160 || i == 176 || i...
0
by: tekanet | last post by:
Hi folks, I'm new with MySQL and I'm really impressed by this database engine. While waiting for Stored Procedures :) (ver 5: anyone can say when will be, approximately, released?), due to the...
4
by: Jeremy Howard | last post by:
Hello everyone, I'm not a database guru so I'm sorry if this is a dumb question but here it goes... I have this sql query that I'm trying to run against a table on a Sql 2k server: SELECT ...
1
by: johndesp | last post by:
I am building an xml document to represent a url request. Some urls contain d equal signs appended to the url. Its important I preserve the equal sign in hte xml document. However, my parser is...
0
by: Linda Antonsson | last post by:
Hi, I am trying to put together a CSS-based layout consisting of a header, a sidebar and a main content area. Page: http://www.westeros.org/ASoWS/ CSS:...
1
by: Andy Jeffries | last post by:
Hi all, I want to have two elements have an equal height, with that height being the larger of the two (with dynamic content). In one case they are just side by side so I want them to look even...
15
by: Murt | last post by:
Hi, when writing equations in vb .net, how do you enter the signs "less than or equal to" etc. thanks Murt
5
by: Yves Glodt | last post by:
Hello, I need to compare 2 instances of objects to see whether they are equal or not, but with the code down it does not work (it outputs "not equal") #!/usr/bin/python class Test:
17
by: Mark A | last post by:
DB2 8.2 for Linux, FP 10 (also performs the same on DB2 8.2 for Windoes, FP 11). Using the SAMPLE database, tables EMP and EMLOYEE. In the followng stored procedure, 2 NULL columns (COMM) are...
14
by: serge calderara | last post by:
Dear all, What is the proper way to check if two object are equal ? I do not mean equal on Object type only but also object value's thnaks for help regards serge
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.