Dhtml grid

i have a grid . which has column coro, i want to on select of the coro type cell getthe option text not value of option . below is my programme . this show on select of this is value but i want text of option .





while (r.Read())

{

//res += “<row id=”" + r[xmlDoc.GetElementsByTagName(“key”)[0].Attributes[“name”].Value] + “”>";



res += “”;



String strPlaceCode = GetPlaceCode(r[4].ToString());



if (strPlaceCode==null || strPlaceCode=="" )

{

strLanguageSpoken = GetLanguageSpoken(r[4].ToString());



if (strLanguageSpoken == “” || strLanguageSpoken == null)

{

strLanguageSpoken = “English”;

}

}

res += “” + r[0].ToString() + “”;

res += “” + r[2].ToString() + “”;

res += “” + r[3].ToString() + “”;

res += “” + r[4].ToString() + “”;

res += “” + strLanguageSpoken + “”;

DataSet ds=new DataSet();

ds = GetGuideInformations(strPlaceCode, strLanguageSpoken);

res += “”;



if (ds.Tables.Count > 0)

{



foreach (DataRow dr in ds.Tables[0].Rows)

{

string strGuideType = “”;

string strGuideType1 = “”;

if (int.Parse(dr[5].ToString()) > 0 || int.Parse(dr[6].ToString()) > 0)

{

strGuideType = “Local Station”;









}

if (int.Parse(dr[7].ToString()) > 0)

{

strGuideType1 = “Out Station”;

}



res += “” + strGuideType + “”;

res += “” + strGuideType1 + “”;



}





}

else

{

res += " N/A ";



res += “Not In List”;

}



res += " ";

The code which you are using looks correct and must produce valid data for the grid.

If you just need a way to access related combo text after value selection, you can use onEditCell event to catch necessary moment and getCustomCombo to locate text by value
Please check attached sample.

1230110943.zip (92.3 KB)