Search record in datagrid ?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Serge,

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

Just my thought,

Cor
 
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
 
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
 
Back
Top