Comunidad de diseño web y desarrollo en internet online

columnas Datagrid

Citar            
MensajeEscrito el 17 Nov 2005 11:12 pm
Buenas noches a todos
otro desconcierto, parece ser que para modificar el tamaño de las columnas de un datagrid el codigo debe ser algo asi:

Código :

myDp.getColumnAt(0).width = 400;


mi pregunta es:
hay algun condicionante para que esto no se produzca?
porque tengo un data grid con 3 columnas y no hay manera de establecer las anchuras mediante codigo.

buscando... he encontrado esto, que es lo que me hace dudar, pero mi inglés es muy pobre y los traductores... no veas.

myGrid.getColumnAt(4).width = 25;

doesn't appear to do anything. I have also experienced the same issues with myGrid.getColumnAt(0).editable = false; - the column was still editable. So it appears to be getColumnAt that is not working as it should.


entiendo que si las columnas tienen la propiedad "editable=false", no se puede modificar su anchura mediante código...

alguna sugerencia???

Gracias por todo.
Saludos

Por feisimo

66 de clabLevel



 

firefox
Citar            
MensajeEscrito el 18 Nov 2005 03:43 am
Funciona para mi...

Código :

dg.setSize(300, 150);
dg.addColumn("test1");
dg.addColumn("test2");
dg.getColumnAt(0).width = 100;
dg.getColumnAt(1).width = 200;


Puedes dar mas datos...

Por Tmeister

260 de clabLevel

2 tutoriales

 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.