PC Review


Reply
Thread Tools Rate Thread

Data from database

 
 
alessiob82@gmail.com
Guest
Posts: n/a
 
      25th Jun 2008
Hi

I'm devellopping an application in c# that shows in a grid
(DataGridView???) the content of a database table (MySQL database).
This table can contain a lot of records (more then 100.000); this
records are written by another process.

1) What is the best way to mantain synchronized my grid and the real
content of table?
2) One column of my grid will be a button; the visibility of each
button depends from the value of a table field, how can I do it?
3) At the moment I'm developping with VisualStudio2005 .NET Framework
2.0, but I have the possibility to develop also with
VisualStudio2008 .NET Framework 3.5; there is a good reason to change
my environment?

Thank,
Alessio
 
Reply With Quote
 
 
 
 
Ignacio Machin ( .NET/ C# MVP )
Guest
Posts: n/a
 
      25th Jun 2008
On Jun 25, 10:26*am, "alessio...@gmail.com" <alessio...@gmail.com>
wrote:
> Hi
>
> I'm devellopping an application in c# that shows in a grid
> (DataGridView???) the content of a database table (MySQL database).
> This table can contain a lot of records (more then 100.000); this
> records are *written by another process.
>
> 1) What is the best way to mantain synchronized my grid and the real
> content of table?


You have to use a pagination mechanism. 100K records in one page is
too much.
I guess that the records are written @ the end, so you should be ok

> 2) One column of my grid will be a button; the visibility of each
> button depends from the value of a table field, how can I do it?

use the ItemDataBound event. there you can hide/show the controls
based on the row

> 3) At the moment I'm developping with VisualStudio2005 .NET Framework
> 2.0, but I have the possibility to develop also with
> VisualStudio2008 .NET Framework 3.5; there is a good reason to change
> my environment?


It's irrelevant for this case
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: Need macro for excel to get data from server database and use results to populate an Access Database Clinton M James Microsoft Access 1 7th Oct 2007 04:32 PM
Using Excel as a database and need macro or vba to take data entered on one tab and update the database by adding to the next avail row rjr Microsoft Excel Programming 5 11th Jun 2006 09:43 PM
How do I export data from Access database to Lotus Notes database =?Utf-8?B?TGl0dGxlIE1pc3MgU3Vuc2hpbmU=?= Microsoft Access External Data 0 18th Jan 2006 05:51 AM
After restoring a database, SqlCommand still sees original database, MS Query Analyser shows restored data Tony Riv Microsoft ADO .NET 0 6th Apr 2005 09:18 AM
DATA UPDATE FROM CLIENT SIDE DATABASE TO WEB-SERVER DATABASE http://www.visual-basic-data-mining.net/forum Microsoft Access 0 23rd Sep 2004 03:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:20 AM.