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 / Languages / C# / August 2006

Tip: Looking for answers? Try searching our database.

What events are necessary

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 30 Aug 2006 01:44 GMT
I have a datagridview and I'd like to perform the following action.
1. When I change values in a cells in a particular column, a login form  
should show.
2. If a successful login is done, then allow a a cell change, otherwise
don't allow cell change.
3. If a change is allowed in the cell, event CellValidating should be
called. If it's not validated place "0.00" in the cell.

What events are necessary to effect this change. I notice that in my current
code after a "0.00" is programmatically placed in a cell because of
non-validation, it returns to step 1 above. I want to eliminate this double
call. I know what the error is, but how do I avoid it. I'm willing to use a
CellEnter or CellClick events if tit helps.
L. A. Jones
Cor Ligthert [MVP] - 30 Aug 2006 06:12 GMT
Dave,

This is a very handy event from the DataGridView, in my idea gives it
endless possibilities.

http://windowssdk.msdn.microsoft.com/en-us/library/system.windows.forms.datagrid
view.cellformatting.aspx


I hope this helps,

Cor

>I have a datagridview and I'd like to perform the following action.
> 1. When I change values in a cells in a particular column, a login form
[quoted text clipped - 13 lines]
> CellEnter or CellClick events if tit helps.
> L. A. Jones

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.