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 size error
GridCtrl::Column size error [message #16829] Tue, 15 July 2008 21:18 Go to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Hi there!

I'm using a GridCtrl to display some SQL-Data. When i first create my GridCtrl and add some Columns, all columns have the same width.

If i call my creation-method again, all columns are at minimum size. Only the last column is very big.

This is how i create my GridCtrl:

GridCtrl datagrid;

void myApp::CreateDatagrid(String sqlTable)
{
datagrid.Reset();

if(sqlTable == "Kunden")
{
	datagrid.AddIndex();
	datagrid.AddColumn("NAME");
	datagrid.AddColumn("NUMMER");
	datagrid.AddColumn("PRODUKT");
	datagrid.AddColumn("VERSION");
	datagrid.AddColumn("STANDORT");
	datagrid.AddColumn("ANBINDUNG");
	datagrid.AddColumn("BEMERKUNG");
}
else if(sqlTable == "Server")
{
	datagrid.AddIndex();
	datagrid.AddColumn("KUNDE");
	datagrid.AddColumn("ALIAS");
	datagrid.AddColumn("HOSTNAME");
	datagrid.AddColumn("DOMAENE");
	datagrid.AddColumn("FUNKTION");
	datagrid.AddColumn("IPADRESSE");
	datagrid.AddColumn("PROTOKOLL");
	datagrid.AddColumn("SYSTEM");
	datagrid.AddColumn("VERSION");
	datagrid.AddColumn("BEMERKUNG");
}
}


I used a SqlArray before and didn't had this error.

This must be a very simple thing but i didn't get it.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl: is it possible to customize the deletion message?
Next Topic: GridCtrl: Tooltip
Goto Forum:
  


Current Time: Tue May 14 02:12:06 CEST 2024

Total time taken to generate the page: 0.02531 seconds