Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl column width simple question
GridCtrl column width simple question [message #21056] Wed, 29 April 2009 10:30 Go to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello all

I have done a simple function to write data to a GridCtrl:

void Grid_Write(int row, int col, char *str)


When the row or the column does not exist, it does:
	if (row > grid.GetRowCount()-1) {
		for (int i = grid.GetRowCount(); i < row+1; ++i)
			grid.AddRow("", 100);	
	}


Doing that with more than one column I get this: the first columns get so thin that are almost hidden.

index.php?t=getfile&id=1702&private=0

Do you know how to get all columns with same width if they - as in this case - are not added to the grid at the same time and data is included in between?

Best regards
Koldo
  • Attachment: Grid.JPG
    (Size: 26.59KB, Downloaded 441 times)


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Previous Topic: When ArrayCtrl is Embedded into TabCtrl, AutoHideSb() will be fail
Next Topic: How to remove a column from ArrayCtrl?
Goto Forum:
  


Current Time: Wed May 15 15:10:02 CEST 2024

Total time taken to generate the page: 0.02458 seconds