on Edit cell doubt once again on combo

Hi all
I have combo column in the cellindex 3 where i get two values I am displaying text and while saving key i am using it in the combo

for example Personal has 23 as an id and Outer as 24 id in the dhtmlxcombo column in the cellindex 3

I have worked on similar problem previously where in getting three values in three ed sections and using onEditCell displaying those related sections of cellIndexes

myGrid.attachEvent("onEditCell",function(stage,rowId,cellIndex,value){
  if(stage==2&&cellIndex==2){
	 myGrid.cells(rowId,4).setValue(value); //using this in the cellIndex =4 if i select personal 23 value is displayed and if i select outer it will display 24
	 return false
   }
	return true
})

what i want now is when i select

 myGrid.cells(rowId,4).setValue(value); //using this in the cellIndex =4 if i select personal 23 value is displayed and if i select outer it will display 24 

but i need to display 23 or 24 in the same cellIndex please solve my problem

thanks in advance

Hi all
I placed SetCValue instead of setValue and my problem is solved

myGrid.attachEvent("onEditCell",function(stage,rowId,cellIndex,value){
  if(stage==2&&cellIndex==2){
   myGrid.cells(rowId,2).setCValue(value);
    return false
   }
   return true
})

I got one more doubt in this combo when i am placing combo values through an ajax call using a php page i want to display in the key value pair

value first in the combo and on selection of value i want to display key in the display

Now i am getting is value instead of key

$.ajax({
	async: false,
	type: "POST",
	data: "f_id="+f_id+"&m_id="+m_id,
	url: "menu.php",
	success: function(msg){
			
	if(msg!='')
	{
		var s_type=msg.split(",");
					
		    for(var i=0;i<s_type.length;i+=2)
		    {
						
			var arr_leave_code=s_type[i].split("-");
						
			myGrid.getCombo(2).put(arr_leave_code[1],arr_leave_code[0]);
		   }
	}
	}
});

// THE FOLLOWING CODE IS TO DISPLAY  text and while saving key i am using it in the combo
myGrid.attachEvent("onEditCell",function(stage,rowId,cellIndex,value){
		  if(stage==2&&cellIndex==2){			
			   
			   myGrid.cells(rowId,2).setCValue(value);
			   return  value;
		   }
		   return true
		})

thanks in advance