示例#1
0
        private static void ConvertFromDeleteGridColumn(DeleteGridColumn current, GridColumn newColumn)
        {
            switch (newColumn.ColumnType)
            {
            case GridColumnType.BinaryImageGridColumn:

                break;

            case GridColumnType.BoundGridColumn:
                break;

            case GridColumnType.EditGridColumn:
                ((EditGridColumn)newColumn).Text = current.Text;
                break;

            case GridColumnType.HyperLinkGridColumn:
                break;

            case GridColumnType.PickerHyperLinkGridColumn:
                break;

            case GridColumnType.PickerLinkButtonGridColumn:
                break;
            }
        }
示例#2
0
        public static GridColumn GetNewColumn(string type)
        {
            GridColumn retval = null;

            switch (type.ToLower())
            {
            case "binaryimagegridcolumn":
                retval = new BinaryImageGridColumn();
                break;

            case "boundgridcolumn":
                retval = new BoundGridColumn();
                break;

            case "deletegridcolumn":
                retval = new DeleteGridColumn();
                break;

            case "editgridcolumn":
                retval = new EditGridColumn();
                break;

            case "hyperlinkgridcolumn":
                retval = new HyperLinkGridColumn();
                break;

            case "pickerhyperlinkgridcolumn":
                retval = new PickerHyperLinkGridColumn();
                break;

            case "pickerlinkbuttongridcolumn":
                retval = new PickerLinkButtonGridColumn();
                break;
            }

            return(retval);
        }