title: JQGrid Dynamic Select Data
body: <p>I have utilised the example code at <a href="http://geekswithblogs.net/renso/archive/2009/07/02/jqgrid-dynamically-loading-select-options.aspx" rel="nofollow noreferrer">Example Code at this link</a> </p>
  
  <p>and I have got my grid to show a dynamically constructed select dropdown on add and edit.  However when it is just showing the data in the grid it shows the dropdown index instead of its associated data.  Is there a way to get the grid to show the data associated with the index instead of the index itself.</p>
  
  <p>e.g. the data on my select could be "0:Hello;1:World";  The drop down on the edit/add window is showing Hello and World and has the correct indexes for them.  If the cell has a value of 1 I would expect it to show World in the grid itself but it is showing 1 instead.</p>
  
  <p>Here is the row itself from my grid:</p>
  
  <pre><code>{ name: 'picklist', index: 'picklist', width: 80, sortable: true, editable: true,
    edittype: "select", formatter: "select", editrules: { required: true} },
  </code></pre>
  
  <p>I am filling the dynamic data content in the loadComplete event as follows:</p>
  
  <pre><code>$('#mygrid').setColProp('picklist', { editoptions: { value: picklistdata} });
  </code></pre>
  
  <p>picklist data is a string of "0:Hello;1:World" type value pairs.</p>
  
  <p>Please can anyone offer any help.  I am fairly new to JQGrids so please could you also include examples.</p>