not equal

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
H

Hrvoje Voda

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
 
Hrvoje,

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

Hope this helps.
 
I tried this, but it doesn't work.


Nicholas Paldino said:
Hrvoje,

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

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hrvoje Voda said:
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
 

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

what's wrong? 5
code error 3
string array 4
DataSet.Merge problem 3
Why are these NOT equal? 2
Don't Understand Error Message (Database) 46
Why exception when going through the DataSet? 5
Module/Prgramming Help 2

Back
Top