Hi,
I am wondering how you search for a specific record in a datagrid?? there
doesn't seem to be a find or a seek option attached to the class.
Thankz
Regards
Darryn 3 1221
Darryn,
If you want to search for a specific record in the data grid, you will
really have to get the view that the grid is using, and then search on that.
You can call the Select method on the DataTable class to find the rows in
the grid that have the particular values that you are searching for.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Darryn Ross" <da****@datawave.com.au> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Hi,
I am wondering how you search for a specific record in a datagrid?? there doesn't seem to be a find or a seek option attached to the class.
Thankz
Regards
Darryn
Hi,
The datagrid is a UI representation of the datasource used, if you want to
search for a specific record you should do so in the datasource.
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Darryn Ross" <da****@datawave.com.au> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Hi,
I am wondering how you search for a specific record in a datagrid?? there doesn't seem to be a find or a seek option attached to the class.
Thankz
Regards
Darryn
Hi Darryn,
There is no seek / search method for the grid. What do you bind the
grid to? Some data containers expose a search method. For example, the
BinarySearch method of Array, the Find method of a DataView, the
Select method of a DataTable.
HTH,
--
Scott http://www.OdeToCode.com
On Mon, 2 Aug 2004 15:23:38 +1000, "Darryn Ross"
<da****@datawave.com.au> wrote: Hi,
I am wondering how you search for a specific record in a datagrid?? there doesn't seem to be a find or a seek option attached to the class.
Thankz
Regards
Darryn This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: |
last post by:
In SQL Server Query Analyzer, if I type in, say, 2 select queries,
it returns 2 datagrids of results, with a scrollbar on the right to scroll
between the 2 (or more) datagrids. I wanted to...
|
by: Simon Harris |
last post by:
Hi All,
I wish to populate more than one datagrid from the same OleDBCommand. The
code I have is:
Dim objCmd As New OleDbCommand(strSql, objConn)
Then...
...
|
by: ree32 |
last post by:
I have a placeholder and depending on a user input(a drop downlist)
when the user clicks a button I dynamically create a number of
datagrids and fill them with data from a database. But the problem...
|
by: Scott Meddows |
last post by:
I'm having trouble scrolling some datagrids so they sync up...
I have two identical datagrids on a form, filled with eh same dataset. I want a user to be able to scroll on the datasets and the...
|
by: |
last post by:
Hello. In SQL Server Query Analyzer, if I type in, say, 2 select queries,
it returns 2 datagrids of results, with a scrollbar on the right to scroll
between the 2 (or more) datagrids. I wanted to...
|
by: Mark Wiewel |
last post by:
hi all,
i am a newbie in ASP.NET and i couldn't find the solution to this one:
i have a form with three datagrids on it. i would like to align them
vertically with a space between each grid of...
|
by: Ausclad |
last post by:
Ok, ill try again.....
It seems fairly simple.
I have two combo boxes in a datagrid. The datagrid is bound to a a table in
a dataset.
The two combo boxes are bound to a single data table...
|
by: rn5a |
last post by:
In a shopping cart app, a ASPX page retrieves the order details &
personal details of a user from a MS-Access database table depending
upon the username of the user.
The order details of a...
|
by: Jim |
last post by:
OK here's my disclaimer: I'm very new to ASP.NET and posting on Google
Groups, so please bear with me and feel free to correct either the way
I code or the way I post.
I have an ASP.NET page...
|
by: =?Utf-8?B?Sm9obiBXYWxrZXI=?= |
last post by:
Hi, I am using the code below to export a webpage to Excel. The webpage has
three datagrids on it and they are all exported to Excel properly and
everything looks very nice, but we would really...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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: 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...
|
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,...
| |