Example #1
0
        private void AddDeleteColumn(RadGridView grid)
        {
            GridViewCommandColumn col = new GridViewCommandColumn();

            col.BestFit();

            col.Name           = "ColDelete";
            col.UseDefaultText = true;
            col.ImageLayout    = System.Windows.Forms.ImageLayout.Center;
            col.DefaultText    = "Delete";
            col.TextAlignment  = System.Drawing.ContentAlignment.MiddleCenter;

            grid.Columns.Add(col);
        }
Example #2
0
        public static void AddEditColumn(RadGridView grid)
        {
            GridViewCommandColumn col = new GridViewCommandColumn();

            col.BestFit();

            col.Name           = "ColEdit";
            col.UseDefaultText = true;
            col.ImageLayout    = System.Windows.Forms.ImageLayout.Center;
            col.DefaultText    = "Edit";
            col.Width          = 70;
            col.TextAlignment  = System.Drawing.ContentAlignment.MiddleCenter;

            grid.Columns.Add(col);
        }