Click here to Skip to main content
15,897,226 members
Home / Discussions / C#
   

C#

 
AnswerRe: C++ to C# stupid question??? Pin
Luc Pattyn5-Jan-07 17:24
sitebuilderLuc Pattyn5-Jan-07 17:24 
GeneralRe: C++ to C# stupid question??? Pin
Pet Lizard6-Jan-07 0:17
Pet Lizard6-Jan-07 0:17 
GeneralRe: C++ to C# stupid question??? Pin
Luc Pattyn6-Jan-07 4:09
sitebuilderLuc Pattyn6-Jan-07 4:09 
GeneralRe: C++ to C# stupid question??? Pin
Pet Lizard6-Jan-07 5:20
Pet Lizard6-Jan-07 5:20 
GeneralRe: C++ to C# stupid question??? Pin
Luc Pattyn6-Jan-07 7:00
sitebuilderLuc Pattyn6-Jan-07 7:00 
AnswerRe: C++ to C# stupid question??? Pin
Steve Hansen5-Jan-07 22:36
Steve Hansen5-Jan-07 22:36 
GeneralRe: C++ to C# stupid question??? Pin
Pet Lizard6-Jan-07 0:17
Pet Lizard6-Jan-07 0:17 
QuestionColumn Resize not executed if Control not visible? Pin
JoeRip5-Jan-07 15:12
JoeRip5-Jan-07 15:12 
I have a form which contains a tab control, which contains two tab pages.

On each tab page, there is a DataGridView, bound to it's own DataTable.

In the RowsAdded event handler for both DGVs, when the first row is added, I resize the columns to fit the data. My handler looks something like this:

 private void dgvAllEvents_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)<br />
 {<br />
   // This message occurs AFTER the row has been added.<br />
   // Some code here checks flags to see if this is first row added, etc<br />
   ...<br />
   dgvAllEvents.AutoResizeColumn(0, DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader);<br />
 }<br />
<br />


This code works fine for the datagridview that is visible - that is, on the selected tab. However, the column does not get resized on whichever dgv is NOT visible - the tab page that is not selected.

The event is getting fired, I have confirmed that. But the column is not resized when the AutoResizeColumn method is called.

Is there an optimization here that prevents resize from being executed if the column is not visible?

Thanks for any insight you have here.
QuestionHow to get a bitmap image from part of a larger bitmap? Pin
Subterranean5-Jan-07 13:29
Subterranean5-Jan-07 13:29 
AnswerRe: How to get a bitmap image from part of a larger bitmap? [modified] Pin
hpjchobbes5-Jan-07 15:31
hpjchobbes5-Jan-07 15:31 
AnswerRe: How to get a bitmap image from part of a larger bitmap? Pin
Luc Pattyn5-Jan-07 17:21
sitebuilderLuc Pattyn5-Jan-07 17:21 
Questionhow to check your sql for ANSI complaint Pin
WayneGretzky5-Jan-07 9:41
WayneGretzky5-Jan-07 9:41 
AnswerRe: how to check your sql for ANSI complaint Pin
Christian Graus5-Jan-07 9:48
protectorChristian Graus5-Jan-07 9:48 
Questionc++ from c# Pin
picazo5-Jan-07 8:42
picazo5-Jan-07 8:42 
AnswerRe: c++ from c# Pin
Luc Pattyn5-Jan-07 8:50
sitebuilderLuc Pattyn5-Jan-07 8:50 
GeneralRe: c++ from c# Pin
picazo5-Jan-07 9:08
picazo5-Jan-07 9:08 
GeneralRe: c++ from c# Pin
Luc Pattyn5-Jan-07 9:32
sitebuilderLuc Pattyn5-Jan-07 9:32 
GeneralRe: c++ from c# Pin
picazo5-Jan-07 9:49
picazo5-Jan-07 9:49 
GeneralRe: c++ from c# Pin
Luc Pattyn5-Jan-07 10:13
sitebuilderLuc Pattyn5-Jan-07 10:13 
GeneralRe: c++ from c# Pin
Luc Pattyn5-Jan-07 10:36
sitebuilderLuc Pattyn5-Jan-07 10:36 
GeneralRe: c++ from c# Pin
Steve Hansen5-Jan-07 22:40
Steve Hansen5-Jan-07 22:40 
GeneralRe: c++ from c# Pin
Luc Pattyn6-Jan-07 3:49
sitebuilderLuc Pattyn6-Jan-07 3:49 
AnswerRe: c++ from c# Pin
Christian Graus5-Jan-07 9:46
protectorChristian Graus5-Jan-07 9:46 
QuestionTreeview and xml???????????? Pin
sajid.salim.khan5-Jan-07 8:41
sajid.salim.khan5-Jan-07 8:41 
AnswerRe: Treeview and xml???????????? Pin
Nader Elshehabi5-Jan-07 11:09
Nader Elshehabi5-Jan-07 11:09 

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.