Hi luyonglie,
To add a number column to the Grid, you can set the ‘columntype’ of a column to ‘number’.
For example:
$("#jqxGrid").jqxGrid({ source: dataAdapter, columns: [ { text: 'No:', dataField: '', columntype: 'number', width: 100 }, { text: 'First Name', dataField: 'firstname', width: 100 }, { text: 'Last Name', dataField: 'lastname', width: 100 }, { text: 'Product', dataField: 'productname', width: 180 }, { text: 'Quantity', dataField: 'quantity', width: 80, cellsalign: 'right' }, { text: 'Unit Price', dataField: 'price', width: 90, cellsalign: 'right', cellsformat: 'c2' }, { text: 'Total', dataField: 'total', cellsalign: 'right', cellsformat: 'c2' } ]});
Best Regards,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com