コード例 #1
0
 private void myGridViewBinding1_GridDataTableDisplayValueNeeded(object sender, MyLib.UI.MyGridDataTableDisplayValueNeededArgs e)
 {
     if (e.Key == "jxStatus")
     {
         e.Value = CrmCommons.JxUserStatus.FindByValue(Convert.ToString(e.Value));
     }
     else if (e.Key == "userType")
     {
         e.Value = CrmCommons.CustomerTypes.FindByValue(Convert.ToString(e.Value));
     }
 }
コード例 #2
0
 private void myGridViewBinding1_GridDataTableDisplayValueNeeded(object sender, MyLib.UI.MyGridDataTableDisplayValueNeededArgs e)
 {
     if (e.Key == "userName")
     {
         var enabled = Convert.ToBoolean(e.GetValue("enabled"));
         if (!enabled)
         {
             e.Value = e.Value + "(未启用)";
         }
     }
 }