473,395 Members | 1,571 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,395 software developers and data experts.

Expression in a DataForm

I've never done database code in C#. :(

I've connected a dataform to a database and can reference all the items in
the table. I want to filter the elements though based upon the value of a
field. The field is call CategoryType of type unsignedByte. The value I
wish to filter on it '19'. Where, within the properties of CategoryType, do
I set the filter?

I tried several things in "Expression" but filtering still doesn't occur.
How do I filter the table query and get back only those rows whose
CategoryType is 19?

--
Steve
Nov 17 '05 #1
1 1271
Steve,

For real filtering (as your word says) the rowfilter of the dataview is
probably the best.

For filtering, selecting, finding, there are at least 4 methods in AdoNet

Datatable.select (know that the sort in that is almost one big bug)
Dataview.find
Dataview.rowfilter
DataRowCollection.find

(they return different objects)

I hope this helps,

Cor
"Steve Teeples" <St**********@discussions.microsoft.com> schreef in bericht
news:05**********************************@microsof t.com...
I've never done database code in C#. :(

I've connected a dataform to a database and can reference all the items in
the table. I want to filter the elements though based upon the value of a
field. The field is call CategoryType of type unsignedByte. The value I
wish to filter on it '19'. Where, within the properties of CategoryType,
do
I set the filter?

I tried several things in "Expression" but filtering still doesn't occur.
How do I filter the table query and get back only those rows whose
CategoryType is 19?

--
Steve

Nov 17 '05 #2

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

Similar topics

1
by: Peter | last post by:
Hello, Thanks for reviewing my question. I am getting the following error when trying to create a form using the DataForm Wizard: "The following error occurred: Value cannot be null. ...
0
by: TJS | last post by:
any examples available of how to use this free dataform component from Stephen Walther ? I'd like to know how it can be used in add /update/delete scheme ...
5
by: needin4mation | last post by:
Hi, I have an asp.net 1.1 application that populates data from a database. When the user changes data, they have to hit a button to update the data. The data entry form (same form that is...
1
by: msmcg | last post by:
I built a dataform using the VB.net wizard. I have two tables, with one relation, Parent to Child, linked on one common key. The dataform loads the data fine, and when I click on the Add button,...
4
by: Nitromuse | last post by:
After showing a DataForm how do you pause the code from continuing to run until the user clicks a button after all the data has been entered ? Thank you for your help!!
2
by: Larry Woods | last post by:
Has anyone noticed that the VS Dataform wizard doesn't gen correctly DISPLAYED results if you have an IDENTITY key defined for your table (normal stuff, IMHO)? If your dataset is empty the first...
0
by: Peter Newman | last post by:
im slowely getting to grips with this, but one thing im stuck on, is , the following Sub is auto generated by the Dataform Wizard. I have set the OleDbDataAdapter1 OleDbInsertCommand. what i dont...
4
by: Ralph | last post by:
I am trying out the dataform wizard in visual studio using a sql server 2003 database. It seems to want to create ole db adapters and connections and commands. How do I make it use sql commands...
0
by: Meenu4vs | last post by:
Hi i'm using Visual Studio 2005 professional edition. I'm currently doing a customer maintanence project in C#.I need to use DataForm Wizard.I cannot find any DataForm Wizard From the Template.Tried...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.