3.2.0

setting primary key value to a row

Hello all,
How can i set a primary key value to row? Like if i select a row, the value of that row would correspond to a primary key value in my database.
Thank you
crsna
crsna
August 11,
Well, first of all, you need to bring that ID into JS Data Array. After that easy trick to hide that column, 3 diff techniques as followings

// if data[6] for your ID column
// this will only show data[0] to data[5]
obj.setColumnProperty("count", 5);


// if data[0] is your ID column
// hide column-0
obj.setColumnProperty("count", 6);
obj.setColumnValues([1,2,3,4,5]);


<style>
/* make the column of zero width */
.active-column-0 {width:  0px;}
</style>

Sudhaker Raj
August 11,

This topic is archived.

See also:


Back to support forum