Search record in datagrid ?

G

Guest

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
 
C

Cor Ligthert

Serge,

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

Just my thought,

Cor
 
G

Guest

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
 
C

Cor Ligthert

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top