Esempio n. 1
0
        public AgedBalancesNotesDetailRowTemplate(object dataSource, string strKFieldName)
        {
            this.dataSource     = dataSource;
            this.currentRow     = 0;
            this.dtKeyFieldName = strKFieldName;
            detailGridView      = new CffGridView();
            detailGridView.SettingsDetail.IsDetailGrid = true;
            detailGridView.KeyFieldName = this.dtKeyFieldName;

            detailGridView.EnableCallBacks = false;
            detailGridView.InsertDataColumn("CreatedByEmployeeName", "Created By", 80);
            detailGridView.InsertDataColumn("Created", "Created", 80);

            GridViewDataMemoColumn column = new GridViewDataMemoColumn();

            column.Caption      = "Comment";
            column.FieldName    = "Comment";
            column.Width        = Unit.Pixel(300);
            column.VisibleIndex = detailGridView.Columns.Count;
            column.CellStyle.HorizontalAlign = HorizontalAlign.Justify;
            column.CellStyle.Wrap            = DevExpress.Web.ASPxClasses.DefaultBoolean.True;
            column.EditCellStyle.Wrap        = DevExpress.Web.ASPxClasses.DefaultBoolean.True;
            column.ReadOnly = true;
            detailGridView.Columns.Add(column);

            detailGridView.Enabled = false;
        }
Esempio n. 2
0
        public AgedBalancesNotesDetailRowTemplate(string strKFieldName)
        {
            this.dtKeyFieldName = strKFieldName;
            this.currentRow     = 0;

            detailGridView = new CffGridView();
            detailGridView.SettingsBehavior.AllowFocusedRow = true;
            detailGridView.SettingsBehavior.AllowGroup      = true;
            detailGridView.SettingsDetail.IsDetailGrid      = true;
            detailGridView.SettingsDetail.ExportMode        = DevExpress.Web.ASPxGridView.GridViewDetailExportMode.Expanded;
            detailGridView.KeyFieldName = this.dtKeyFieldName;
            detailGridView.Visible      = true;

            detailGridView.Styles.Cell.Wrap            = DevExpress.Web.ASPxClasses.DefaultBoolean.True;
            detailGridView.Styles.Cell.HorizontalAlign = HorizontalAlign.Justify;
            detailGridView.Settings.ShowFooter         = true;

            detailGridView.EnableCallBacks = false;
            GridViewDataColumn colName = new GridViewDataColumn("CreatedByEmployeeName", "Created By");

            colName.VisibleIndex   = detailGridView.Columns.Count;
            colName.CellStyle.Wrap = DevExpress.Web.ASPxClasses.DefaultBoolean.False;
            colName.Width          = Unit.Percentage(10);
            colName.ReadOnly       = true;
            detailGridView.Columns.Add(colName);


            GridViewDataMemoColumn column = new GridViewDataMemoColumn();

            column.Caption      = "Comment";
            column.FieldName    = "Comment";
            column.Width        = Unit.Percentage(60);
            column.VisibleIndex = detailGridView.Columns.Count;
            column.CellStyle.HorizontalAlign = HorizontalAlign.Justify;
            column.CellStyle.Wrap            = DevExpress.Web.ASPxClasses.DefaultBoolean.True;
            column.EditCellStyle.Wrap        = DevExpress.Web.ASPxClasses.DefaultBoolean.True;
            column.ReadOnly = true;
            detailGridView.Columns.Add(column);

            detailGridView.InsertDataColumn("Created", "Created");
            detailGridView.SettingsBehavior.ProcessFocusedRowChangedOnServer = false;
            detailGridView.SettingsBehavior.ProcessSelectionChangedOnServer  = false;
            detailGridView.Enabled = false;
        }