我在我的ASPxGridView
中擁有JavaScipt爲FocusedRowChanged
提供的客戶端功能。 在此函數中,我將gvMore.GetFocusedRowIndex()
發佈到我的CallBackPanel
PerformCallback
。 我保存FocusedRowIndex
到裏變量(var ri = gvMore.GetFocusedRowIndex();
) 然後我SetFocusedRowIndex(-1);
後刪除焦點行(gvMore.SetFocusedRowIndex(-1);
) 現在,我怎麼更改GridView
row[ri]
顏色?通過JavaScript在SetFocusedRowIndex(-1)之後更改DevExpress GridView行背色
function OnGridFocusedRowChanged() {
if (gvMore.GetFocusedRowIndex() > -1)
CallBackPanel_FindPlcyCar.PerformCallback(gvMore.GetFocusedRowIndex());
var ri = gvMore.GetFocusedRowIndex();
gvMore.SetFocusedRowIndex(-1);
// *???*
}
什麼JavaScript代碼是必要的???線?
請在這裏回答,請不要將我重定向到另一個鏈接。
非常感謝
你嘗試過什麼嗎?結果是什麼? – Fares