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 / Windows Forms / WinForm General / September 2003

Tip: Looking for answers? Try searching our database.

Editable DataGrid and Real-time Updates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Linkz - 27 Sep 2003 02:33 GMT
Greetings,

I have a DataGrid that is bound to a DataTable.  The DataTable is
updated under the covers and as such is reflected in the DataGrid.
However, the DataGrid is editable (basically its a control for the user
that reflects real-time pricing information).  When the user begins to
edit a row, I make the row as uneditable with some state information
that I've provided to the row.  Now, the problem is that if the user is
editing and I add or update a row, the cell concedes focus and commits
the contents of the cell.  As you can guess this is extremely annoying
if the data is updating with any regularity.  Anyone have any insight
into this one?

We've been through one iteration of tweaking and contorting the DataGrid
and the DataGridColumn.  So any insight here would be very useful.

-- Linkz
Ulrich Sprick - 30 Sep 2003 14:16 GMT
Hi,
I did not have this kind of trouble, but a starting point for your own experiments might be
http://www.i-syn.gmxhome.de/devcom/colstyles/intro.htm.

I recommend to prevent grid changes as long as the user edits a cell. Maybe a look at SuspendLayout() and ResumeLayout() helps.
HTH,
ulrich

> Greetings,
>
[quoted text clipped - 13 lines]
>
> -- Linkz

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.