devexpress ASPxGridView 与UpdatePanel共用
设置SettingsBehavior.ProcessSelectionChangedOnServer=true,EnableCallBacks=false
以下无用
<ClientSideEvents EndCallback="function(s, e) {
alert(e.ID);
switch (e.ID) {
case 'btnCreate':
popup.Show();document.getElementById('txtjdtid').value =s.cpMsg;
break;
}
}" />
protected void gvOrder_HtmlRowPrepared(object sender, ASPxGridViewTableRowEventArgs e)
{
if (!gvOrder.IsEditing && e.RowType == GridViewRowType.Data)
{
if (e.Row.Cells.Count > 10)
{
object obj = gvOrder.GetRowValues(e.VisibleIndex, "tradeStatus");
if (obj != null)
{
if (obj.ToString() == "1")
{
ControlCollection col = e.Row.Cells[1].Controls;
col[0].Visible = false;
}
}
}
}
}

浙公网安备 33010602011771号