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# / February 2008

Tip: Looking for answers? Try searching our database.

detect ColumnChanged event "earlier"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ryan Liu - 24 Feb 2008 09:48 GMT
I have a DataGrid with only one column is editable. It is a
DataGridViewCheckBoxColumn.

I want to detect if the any checkbox state is changed. So I listen to
ColumnChanged event.

But whenever user click the checkbox, and checkbox state changed, but the
event is not fired until the user click anywhere else in the grid or in the
parent form.

Is there a nice way to detect it "earlier"?

Thanks a lot!

~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

 Ryan Liu
 Shanghai Fengpu Software Co. Ltd
 Shanghai , China

 http://www.PowerCATI.com  Powerful CATI!
 http://www.fpsoft.net.cn
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
RobinS - 24 Feb 2008 19:00 GMT
Assuming it's a DataGridView and not a DataGrid (two different things), try
capturing one of the other events, like the CellValueChanged event, or
CellBeginEdit/CellEndEdit. I don't know for certain that they will work, but
it seems like the next thing to try.

RobinS.
------------------------
>I have a DataGrid with only one column is editable. It is a
> DataGridViewCheckBoxColumn.
[quoted text clipped - 20 lines]
>  http://www.fpsoft.net.cn
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

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.