Пример #1
0
        /// <summary>
        /// Initialise our CheckBoxColumn.
        /// </summary>
        public CheckBoxColumn()
        {
            // set the view one as readonly
            viewItem          = new CheckBoxItem(false);    // SAW was false
            this.ItemTemplate = viewItem as ITemplate;

            // let the edit check box be editable
            editItem = new CheckBoxItem(true);
            this.EditItemTemplate = editItem as ITemplate;
        }
Пример #2
0
		/// <summary>
		/// Initialise our CheckBoxColumn.
		/// </summary>
		public CheckBoxColumn()
		{
			// set the view one as readonly
			viewItem = new CheckBoxItem(false); // SAW was false
			this.ItemTemplate = viewItem as ITemplate;

			// let the edit check box be editable
			editItem = new CheckBoxItem(true);
			this.EditItemTemplate = editItem as ITemplate;
		}
Пример #3
0
        /// <summary>
        /// Initialise our CheckBoxColumn with an optional ImmediatePostback capability.
        /// </summary>
        /// <param name="ImmediatePostback">If true then each change of state of the CheckBox item
        /// will cause an event to be fired immediately on the server.</param>
        public CheckBoxColumn(bool ImmediatePostback)
        {
            // set the view one as readonly
            viewItem          = new CheckBoxItem(ImmediatePostback);
            this.ItemTemplate = viewItem as ITemplate;

            // let the edit check box be editable
            editItem = new CheckBoxItem(true);
            this.EditItemTemplate = editItem as ITemplate;

            AutoPostBack = ImmediatePostback;
        }
Пример #4
0
		/// <summary>
		/// Initialise our CheckBoxColumn with an optional ImmediatePostback capability.
		/// </summary>
		/// <param name="ImmediatePostback">If true then each change of state of the CheckBox item 
		/// will cause an event to be fired immediately on the server.</param>
		public CheckBoxColumn(bool ImmediatePostback)
		{
			// set the view one as readonly
			viewItem = new CheckBoxItem(ImmediatePostback);
			this.ItemTemplate = viewItem as ITemplate;

			// let the edit check box be editable
			editItem = new CheckBoxItem(true);
			this.EditItemTemplate = editItem as ITemplate;

			AutoPostBack = ImmediatePostback;
		}