Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / January 2005

Tip: Looking for answers? Try searching our database.

Search record in datagrid ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
serge calderara - 11 Jan 2005 07:53 GMT
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
Cor Ligthert - 11 Jan 2005 09:49 GMT
Serge,

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

Just my thought,

Cor
serge calderara - 11 Jan 2005 12:27 GMT
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,
>
[quoted text clipped - 4 lines]
>
> Cor
Cor Ligthert - 11 Jan 2005 12:33 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.