U++ framework
Do not panic. Ask here before giving up.

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: 3458
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 697 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: Tue May 05 20:41:23 GMT+2 2026

Total time taken to generate the page: 0.00669 seconds