Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Jagged Array Problems Pin
Steve5177126-Oct-09 7:23
Steve5177126-Oct-09 7:23 
GeneralRe: Jagged Array Problems Pin
Luc Pattyn26-Oct-09 7:38
sitebuilderLuc Pattyn26-Oct-09 7:38 
GeneralRe: Jagged Array Problems Pin
Steve5177126-Oct-09 8:00
Steve5177126-Oct-09 8:00 
GeneralRe: Jagged Array Problems Pin
Not Active26-Oct-09 8:23
mentorNot Active26-Oct-09 8:23 
GeneralRe: Jagged Array Problems Pin
Steve5177126-Oct-09 13:57
Steve5177126-Oct-09 13:57 
AnswerRe: Jagged Array Problems Pin
Not Active26-Oct-09 7:06
mentorNot Active26-Oct-09 7:06 
GeneralRe: Jagged Array Problems Pin
Steve5177126-Oct-09 7:50
Steve5177126-Oct-09 7:50 
QuestionDataGridView Scrollbars Disabled Pin
musefan26-Oct-09 6:21
musefan26-Oct-09 6:21 
C# WinForms .Net 3.5

I have datagridview that displays a list of entries pulled from a database. This part works.
The datagridview has 'ScrollBars' set to 'Both'.

The setup is as follows...

TabControlMain has 2 pages, TabControlMain.page1 has a tabcontrol of which its first page contains the DGV in question.
TabControlMain.page2 also has a tabcontrol.

When the entries load (added via 'ReportProgress' event of background worker) then scroll bars appear as desired.
However, If the entries are loaded when TabControlMain.page2 is displayed and the user selects TabControlMain.page1, then the scroll bars are disabled, even thou the content is larger than the display area. If the user click a button to reload the list, then they appear again.

Basically, if the datagridview is populated while it is not visible then the problem occurs.

Also to note, that the DGV is part of a userControl.

Has anybody come across this issue before?

So far I have had no luck, my best idea was to try to update the DGV whenever the page is reselected. But I have tried .Refresh, .Update, .Invalidate...

...Just tried setting 'ScrollBars' to 'None' and then back to 'Both' when the DGV is reselected and the scrollbars are enabled again. This is what I want but is not the ideal solution. Can anybody offer a better alternative? Or reason why it happens in the first place?

Life goes very fast. Tomorrow, today is already yesterday.

QuestionHow to create GUI designer for users Pin
omeecode26-Oct-09 5:38
omeecode26-Oct-09 5:38 
AnswerRe: How to create GUI designer for users Pin
Henry Minute26-Oct-09 5:46
Henry Minute26-Oct-09 5:46 
AnswerRe: How to create GUI designer for users Pin
J4amieC26-Oct-09 6:39
J4amieC26-Oct-09 6:39 
AnswerRe: How to create GUI designer for users Pin
MickCurley26-Oct-09 7:53
MickCurley26-Oct-09 7:53 
Questionwindows service security permissions Pin
Chesnokov Yuriy26-Oct-09 5:31
professionalChesnokov Yuriy26-Oct-09 5:31 
AnswerRe: windows service security permissions Pin
Covean26-Oct-09 6:33
Covean26-Oct-09 6:33 
GeneralRe: windows service security permissions Pin
Chesnokov Yuriy26-Oct-09 7:56
professionalChesnokov Yuriy26-Oct-09 7:56 
GeneralRe: windows service security permissions Pin
Covean26-Oct-09 22:19
Covean26-Oct-09 22:19 
QuestionRe: windows service security permissions Pin
Chesnokov Yuriy26-Oct-09 23:14
professionalChesnokov Yuriy26-Oct-09 23:14 
AnswerRe: windows service security permissions Pin
Covean26-Oct-09 23:39
Covean26-Oct-09 23:39 
QuestionMarshal.FinalReleaseComObject locking up Pin
Ian Shlasko26-Oct-09 4:44
Ian Shlasko26-Oct-09 4:44 
QuestionCrysatl Report Problem Pin
Thaer Hamael26-Oct-09 2:20
Thaer Hamael26-Oct-09 2:20 
GeneralRe: Crysatl Report Problem Pin
Henry Minute26-Oct-09 3:46
Henry Minute26-Oct-09 3:46 
Questionhow to develop IRM application Pin
Joe Rozario26-Oct-09 2:09
Joe Rozario26-Oct-09 2:09 
AnswerRe: how to develop IRM application Pin
Richard MacCutchan26-Oct-09 4:19
mveRichard MacCutchan26-Oct-09 4:19 
GeneralRe: how to develop IRM application Pin
Joe Rozario26-Oct-09 17:46
Joe Rozario26-Oct-09 17:46 
GeneralRe: how to develop IRM application Pin
Richard MacCutchan26-Oct-09 22:21
mveRichard MacCutchan26-Oct-09 22:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.