Getting selected value from grid

Hi,

I am using #master_checkbox to derive master checkbox to select all. For each individul checkbox in row item I use 0 in the xml rendering.

I have 5 columns in the grid. “Master checkbox”, Gr Id, Gr Name, Terr ID, Terr Name

My question is how do I select a particular value, say Gr Id, from a selected (checkbox checked) row?

I looked through the Grid API, but I could not figure out a way to do this.

Thanks,
Brian

Do you want select whole row if check box in that row is checked? Or do you want mark somehow only cell from Gr Id column?

In first case you can attach “onCheck” event and mark checked row with some background:

mygrid.attachEvent(“onCheck”,function(row_id,cell_ind,state){
if(state) mygrid.setRowTextStyle(row_id,“background-color: red;”);
})