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 / August 2007

Tip: Looking for answers? Try searching our database.

The background color of DataGridView looks incorrect after Alt+Tab, Alt+Tab

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zlf - 25 Aug 2007 15:06 GMT
Hello,
I just implement a custom control that extends from DataGridView, every cell
has different background. I found a problem, for now it seems to be erasing
background incorrectly after selecting a cell, when switch to different
application(hit Alt+Tab) and then once more to back. The background of
selected cell will be consistently rendered to a color, rather than the
dynamically configured one. If I select another cell after switching, the
previously selected cell's background will be rendered to be correct color
then.

Thanks
zlf - 25 Aug 2007 17:58 GMT
Resolved. Execute ClearSelection() in CellSelection event will be ok.

"zlf" <zlfcn@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ:%23kIjVEy5HHA.2312@TK2MSFTNGP06.phx.gbl...
> Hello,
> I just implement a custom control that extends from DataGridView, every
[quoted text clipped - 7 lines]
>
> Thanks
zlf - 31 Aug 2007 05:13 GMT
It occurs again:(, not so frequently but indeed occurs sometime. It occurs
when I resize some columns too.
Plz help me, thx

zlf

"zlf" <zlfcn@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ:%23tPt7kz5HHA.5984@TK2MSFTNGP04.phx.gbl...
> Resolved. Execute ClearSelection() in CellSelection event will be ok.
>
[quoted text clipped - 10 lines]
>>
>> Thanks

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.