Esempio n. 1
0
        public static TableCell AddDataCell(this TableRow row, Control control, String cellID  = null, bool wrap = true,
                                            System.Web.UI.WebControls.HorizontalAlign horAlign = System.Web.UI.WebControls.HorizontalAlign.Left,
                                            System.Web.UI.WebControls.VerticalAlign verAlign   = System.Web.UI.WebControls.VerticalAlign.Top
                                            )
        {
            TableCell cell = new TableCell();

            cell.SetDataCellStyle();
            cell.ID = cellID;
            cell.HorizontalAlign = horAlign;
            cell.VerticalAlign   = verAlign;
            cell.Wrap            = wrap;
            cell.Controls.Add(control);

            row.Cells.Add(cell);
            return(cell);
        }
Esempio n. 2
0
 public void DataGridInitProperties(bool AllowCustomPaging, bool AllowPaging, bool AllowSorting, bool AutoGenerateColumns, int CellPadding, int CellSpacing, bool Enabled, bool EnableViewState, System.Web.UI.WebControls.GridLines GridLines, System.Web.UI.WebControls.HorizontalAlign HorizontalAlign, bool ShowFooter, bool ShowHeader)
 {
     MyDataGrid.AllowCustomPaging   = AllowCustomPaging;
     MyDataGrid.AllowPaging         = AllowPaging;
     MyDataGrid.AllowSorting        = AllowSorting;
     MyDataGrid.AutoGenerateColumns = AutoGenerateColumns;
     MyDataGrid.CellPadding         = CellPadding;
     MyDataGrid.CellSpacing         = CellSpacing;
     MyDataGrid.Enabled             = Enabled;
     MyDataGrid.EnableViewState     = EnableViewState;
     MyDataGrid.GridLines           = GridLines;
     MyDataGrid.HorizontalAlign     = HorizontalAlign;
     MyDataGrid.ShowFooter          = ShowFooter;
     MyDataGrid.ShowHeader          = ShowHeader;
 }
Esempio n. 3
0
 protected void PagerWork(int PageSize, System.Web.UI.WebControls.PagerMode pager, System.Drawing.Color BackColor, System.Drawing.Color BorderColor, System.Web.UI.WebControls.Unit BorderWidth, string MyClass, System.Web.UI.WebControls.Unit Height, System.Web.UI.WebControls.HorizontalAlign HorizontalAlign, string NextPageText, int PageButtonCount, System.Web.UI.WebControls.PagerPosition PagerPosition, string PrevPageText, System.Web.UI.WebControls.VerticalAlign VerticalAlign, bool Visible, bool Wrap)
 {
     MyDataGrid.PageSize                   = PageSize;
     MyDataGrid.PagerStyle.Mode            = pager;
     MyDataGrid.PagerStyle.BackColor       = BackColor;
     MyDataGrid.PagerStyle.BorderColor     = BorderColor;
     MyDataGrid.PagerStyle.BorderWidth     = BorderWidth;
     MyDataGrid.PagerStyle.CssClass        = MyClass;
     MyDataGrid.PagerStyle.Height          = Height;
     MyDataGrid.PagerStyle.HorizontalAlign = HorizontalAlign;
     MyDataGrid.PagerStyle.NextPageText    = NextPageText;
     MyDataGrid.PagerStyle.PageButtonCount = PageButtonCount;
     MyDataGrid.PagerStyle.Position        = PagerPosition;
     MyDataGrid.PagerStyle.PrevPageText    = PrevPageText;
     MyDataGrid.PagerStyle.VerticalAlign   = VerticalAlign;
     MyDataGrid.PagerStyle.Visible         = Visible;
     MyDataGrid.PagerStyle.Wrap            = Wrap;
 }
Esempio n. 4
0
 public static void InitGeneralTableLayout(System.Web.UI.WebControls.TableItemStyle TableItemStyle, System.Drawing.Color ForeColor, System.Drawing.Color BackColor, System.Drawing.Color BorderColor, System.Web.UI.WebControls.BorderStyle BorderStyle, System.Web.UI.WebControls.Unit BorderWidth, string MyCsClass, System.Web.UI.WebControls.HorizontalAlign HorizontalAlign, System.Web.UI.WebControls.VerticalAlign VerticalAlign, System.Web.UI.WebControls.Unit Width, System.Web.UI.WebControls.Unit Height)
 {
     TableItemStyle.BackColor       = BackColor;
     TableItemStyle.BorderColor     = BorderColor;
     TableItemStyle.BorderStyle     = BorderStyle;
     TableItemStyle.BorderWidth     = BorderWidth;
     TableItemStyle.CssClass        = MyCsClass;
     TableItemStyle.HorizontalAlign = HorizontalAlign;
     TableItemStyle.VerticalAlign   = VerticalAlign;
     TableItemStyle.ForeColor       = ForeColor;
     TableItemStyle.Width           = Width;
     TableItemStyle.Height          = Height;
 }