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;
}
}
}
}
}

posted @ 2016-07-26 16:36  郭梁春  阅读(310)  评论(0)    收藏  举报