473,406 Members | 2,217 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.

Search record in datagrid ?

Dear all,

I am using a datagrid which is populate from an array list items
This array list can be updated at anytime.If this occurs I need that the
content of the datagrid get synchronise too.

The problem I have is that if I clear the all datagrid, and update it to the
new array list content, it might happen that I can see my grid bliking, and
thats bas behaviour for eyes.

The idea I get is to scan each arraylist item and verify if it exist in the
datagrid, if it exist it means that data still need to be shown.
If some of data grid data are not prsent in the array list, I should delete
the current grid item which is search from the grid. I have try to use the
grid ItemCollection but could not get it working.

How can I search for an item in a datagrid, then retrive its current
position and delete that position records from datagrid ?

thnaks fro your help
regards
Serge
Jul 21 '05 #1
3 1349
Serge,

Probably by using directly a less effort and code consuming datasource as
the DataTable.

Just my thought,

Cor
Jul 21 '05 #2
Ny Datagrid data are not coming from a database table, they are raw data from
a TCP chanel that I reorganise in the grid

regards
serge

"Cor Ligthert" wrote:
Serge,

Probably by using directly a less effort and code consuming datasource as
the DataTable.

Just my thought,

Cor

Jul 21 '05 #3
Serge,

When you can use an arraylist you can in my opinion as well use a datatable.

Show me how you add the data to the arraylist, than I can maybe show you how
to do that with a datatable and I than know directly what program language
you use.

Cor
Jul 21 '05 #4

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

Similar topics

0
by: Patrick | last post by:
I'm working on a contact management application, and need a hand with one aspect... Here's what I want to create: ------------------------------------ A form split into two parts. There is a...
0
by: jeffreycope | last post by:
Let's say I have a datagrid displaying data that's been filtered via a search page. Now I bring up a maintenance page and add a new record and this new record doesn't match the search / filter...
2
by: mattmerc | last post by:
Hi all, I've searched around on this topic but haven't come up with anything that matches exactly what I am trying to do. I have an ASP .net application running over a SQL database. I need to...
5
by: Alan | last post by:
I want search for a record in a table that a record's field value matching a particular value eg. customer name. What property or method of data binding manager or dataset on a form has this ?
2
by: HS1 | last post by:
Hello all I use a DataGrid to show the records of a table of an Access database (using a DataSet). Now I want to have a search button in the form so that when there is a match between my...
3
by: HS1 | last post by:
Hello To present (and manipulate) data in a table, I use an DataGrid and a DataSet "ds" DataGrid1.DataSource = ds However, to search a record in this DataGrid, I have to use DataView "dv" ...
0
by: HS1 | last post by:
Hello all I use a DataGrid to present the data of an Access database table ("Clients") using DataAdapter and DataSet (ds) -----------------------------------------------------------...
3
by: serge calderara | last post by:
Dear all, I am using a datagrid which is populate from an array list items This array list can be updated at anytime.If this occurs I need that the content of the datagrid get synchronise too. ...
2
by: preeti13 | last post by:
hi friends please help me with my problem i have a code for search application it is searching one record from the data base at a time but i have so many records with that name but its not searching...
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
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
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.