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

displaying data in datagird

thanks
but sir writting query is not my problem.major problem i m finding is who to display quered data in datagrid.give me the syntex.datagrid is not allowing me show data searched through the query.it show data in single field filtered mode.
code which i m using is
adodc1.recordset.filter="firstname like ' "& text1.text & "%'".
but system does not take this
adodc1.recordset.filter="firstname like ' "& text1.text & "%'and lastname like' " & text2.text &"%'";

my query returns more then one record.
Dec 18 '06 #1
3 1509
Killer42
8,435 Expert 8TB
thanks
but sir writting query is not my problem.major problem i m finding is who to display quered data in datagrid.give me the syntex.datagrid is not allowing me show data searched through the query.it show data in single field filtered mode.
code which i m using is
adodc1.recordset.filter="firstname like ' "& text1.text & "%'".
but system does not take this
adodc1.recordset.filter="firstname like ' "& text1.text & "%'and lastname like' " & text2.text &"%'";

my query returns more then one record.
Try using * instead of %.
Dec 19 '06 #2
seshu
156 100+
hi sir this is seshu i dont know the exact anser for your query but i can sujjest u to check at one place that is here
you gave ---------------first name like '" & text1.text% & "'
insted try this-------------------firxtname like '" & text1.text & "'%
i think this will work
if not try to concatinate both text,text and %
Dec 21 '06 #3
Killer42
8,435 Expert 8TB
you gave ---------------first name like '" & text1.text% & "'
insted try this-------------------firxtname like '" & text1.text & "'%
I'm not certain, but shouldn't the % (or in my opinion, more likely *) be inside the single quote delimiters?
Dec 21 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Freddy | last post by:
I have 2 tables in a dataset. One of them is child to the other. In my dataset, I specify both default views to allowdelete = false My datasource table of the datagird is the master table...
5
by: Robert | last post by:
Hello Accessors I have some reports created in Access that are very good for what they do. However, it seems to me that when you are displaying information you don't need to print out that a...
0
by: timon | last post by:
I have create a Datagird in the window form. How can I set the column name in the datagird?
2
by: Das | last post by:
Hi, With the data grid I have set the allow sort to true. I aslo know with hittest which column was last sorted. Even thought I sort the dataview with that field but. But then How can I get...
0
by: carlos perez | last post by:
Two thins There is a field called explanation. I need to detect if the field is empty the buttoncolumn must be active for that row if its already filled the user cant join more data. I have...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
1
by: devo | last post by:
All- I need to format my datagrid so that each row within the datagrid shows two rows of data from the underlying dataset. Basically it is to reduce the length of the resulting html page. ...
1
by: Kiran | last post by:
Hi, Does any one know how to add a button to every row of a windows form datagird. Can anyone provide me some code on this. I have searched a lot but couldn't find any. I am posting this for...
1
by: Tull Clancey | last post by:
Hi All. I want to be able to change the font colour of certain rows in a Net.Datagird. The data source is a manually created data table within a set. I can format all the columns just the...
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
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
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.