:: Home >>

column count

Sets or retrieves the number of columns in the grid.

Syntax

var value = obj.getColumnCount(); 
obj.setColumnCount(value);        

obj.onColumnCountChanging = function(value){...}; 
obj.onColumnCountChanged = function(value){...}; 
obj.onColumnCountError = function(value){...}; 

Defined in

column model

Examples

var myCells = [
    ["Cell text", "123", "5/18/2004"],
    ["More...", "456", "1/12/2006"]
]

var obj = new AW.UI.Grid;
obj.setCellText(myCells); 
obj.setColumnCount(3); // show 3 columns
obj.setRowCount(2);
document.write(obj);

See also

Fixed columns: left, right
Column properties: indices, width

Comments

No comments yet.
Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5