cancel
Showing results for 
Search instead for 
Did you mean: 

RE: getSelectedCellColumn()

Former Member
0 Kudos

hi

if i use the getSelectedCellColumn() method its always return some negative value can you anyone tell me what is the reason.what is the solution for this one

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Deva,

In display templates, General Tab, there will be check box with name allow cell selection. That should be enabled. Then only you can use <b>getSelectedCellColumn</b> method.

It is clearly stated in help,

<b>int getSelectedCellColumn()</b>

This method returns the column number for the currently selected cell. It only applies if AllowCellSelection is enabled.

regards

Muzammil P.T

Former Member
0 Kudos

hi

Thanks Muzzamil.

Answers (2)

Answers (2)

Former Member
0 Kudos

Is "allow cell selection" enabled in the iGrid query template? This must be enabled in order for getSelectedCellColumn to return a value.

If you only need to capture a "column" click (not a cell click), use the getSelectedColumn() method instead.

- Rick

Former Member
0 Kudos

Is there a selected row in your grid?

getSelectedCellColumn() on a grid that does not have a selected row may return a -1?