private void superGridControl1_DataBindingComplete(object sender, GridDataBindingCompleteEventArgs e)
 {
     foreach (GridRow gridRow in e.GridPanel.Rows)
     {
         CmcsAppletLog entity = gridRow.DataItem as CmcsAppletLog;
         gridRow.Cells["clmContent"].Value = entity.Content.Replace(Environment.NewLine, "");
         //gridRow.Cells["clmContent"].Value = entity.Content.Replace("\r", "").Replace("\n", "");
     }
 }
        private void superGridControl1_CellMouseDown(object sender, DevComponents.DotNetBar.SuperGrid.GridCellMouseEventArgs e)
        {
            CmcsAppletLog entity = Dbers.GetInstance().SelfDber.Get <CmcsAppletLog>(superGridControl1.PrimaryGrid.GetCell(e.GridCell.GridRow.Index, superGridControl1.PrimaryGrid.Columns["clmId"].ColumnIndex).Value.ToString());

            switch (superGridControl1.PrimaryGrid.Columns[e.GridCell.ColumnIndex].Name)
            {
            case "clmShow":
                FrmAppletLog_Oper frmShow = new FrmAppletLog_Oper(entity, false);
                if (frmShow.ShowDialog() == DialogResult.OK)
                {
                    BindData();
                }
                break;
            }
        }
Esempio n. 3
0
 public FrmAppletLog_Oper(CmcsAppletLog pId, bool pEdit)
 {
     InitializeComponent();
     cmcsAppletLog = pId;
     edit          = pEdit;
 }