Ejemplo n.º 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;
		}
Ejemplo n.º 2
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;
		}