using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.GridView;

namespace WpfApplication1
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
		public MainWindow()
		{
			this.InitializeComponent();

			// Insert code required on object creation below this point.
		}

        private void RadButton_Click(object sender, RoutedEventArgs e)
        {
            GridViewCheckBoxColumn col1 = new GridViewCheckBoxColumn();
            col1.Header = "Dynamic GridViewCheckBoxColumn";
            col1.AutoSelectOnEdit = true;
            col1.EditTriggers = GridViewEditTriggers.CellClick;
            col1.DataMemberBinding = new Binding("Property2");
            col1.CellStyle = this.Resources["s1"] as Style;
            col1.EditorStyle = this.Resources["CheckBoxStyle1"] as Style;
            this.gridView.Columns.Add(col1);

        }
	}
}