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

changing where clause in datagridview

VS 2005

Is their a way to dynamically change the where clause in a datagridview or
dataset?

I have a search window where the user can enter a part number or description
or customer etc... and would like to change the where clause based on what
the user has filled out.
Jan 9 '06 #1
2 2163
The Other Mike wrote:
VS 2005

Is their a way to dynamically change the where clause in a datagridview or
dataset?

I have a search window where the user can enter a part number or description
or customer etc... and would like to change the where clause based on what
the user has filled out.


Are you trying to go back to the server to get new data or just trying
to filter the datagridview down from the full dataset?

Chris
Jan 9 '06 #2
Going back to the server to get new data. When the user first opens the
window, there will be no data. They will enter in search criteria. I will
then build the where clause and get the data from the server.

"I Don't Like Spam" <no@spam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
The Other Mike wrote:
VS 2005

Is their a way to dynamically change the where clause in a datagridview
or dataset?

I have a search window where the user can enter a part number or
description or customer etc... and would like to change the where clause
based on what the user has filled out.


Are you trying to go back to the server to get new data or just trying to
filter the datagridview down from the full dataset?

Chris

Jan 10 '06 #3

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

Similar topics

10
by: steve | last post by:
Hi All I would like to be able to change the cell borders on certain cells to none at runtime to make a group of cells appear to be merged I have tried the following in the cellformatting...
7
by: steve | last post by:
Hi All I urgently need help on setting datagridview cell borders at runtime I found some code on the web from Programming Smart Client Data Applications with .NET 2.0 by Brian Noyes See...
6
by: Altman | last post by:
I am playing around with making a dataset with the designer in vb.net 2005. I realize you can add parameters to select statement and then filter off of those parameters. What I would like to do...
6
by: Terry Olsen | last post by:
I have two DataGridView's loaded from their respective datasources. I want to highlight rows in one DataGridView that are also in the other DataGridView. But the following code does not work....
0
by: =?Utf-8?B?R2FyZ2FtZWxsZQ==?= | last post by:
Hello, I use a Datagridview to let the user edit parts of a document. I want to give a feedback to my user when he resizes the grid's column width. How can I intercept the size "changing" event,...
0
by: Hassan | last post by:
Hi, Im using visual studio 2005,C#2 Framework 2.0 In my program, i have a DataGridView where DataGridView.DataSource equal to a BindingSource.DataSource and this BindingSource.DataSource equalt...
1
by: jaholm | last post by:
I have a datagridview bound to a dataview of a typed dataset. The binding is accomplished with a bindingsource object. When I programatically modify one of the datarows in the datatable of the...
2
by: Rob | last post by:
I have a few columns wich represent a primary key from a table. I would like to disallow changing any of its content within the datagridview. Something that would appear logical to me does not...
0
by: ziketo | last post by:
Hi, I searched a lot about changing the DataGridView cell borders. BYTES helped me so I will write down the solution: 1. You should override the class DataGridViewTextBoxCell, and the new class...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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: 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
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...

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.