How to set the coloumn width in wpf usercontrol using C1 flexgrid
Amit Adlak
路 public MainWindow()
路 {
路 InitializeComponent();
路
路 // create grid, add to page
路 var flex = new C1.WPF.FlexGrid.C1FlexGrid();
路 this.LayoutRoot.Children.Add(flex);
路 // bind to some data
路 flex.AutoGenerateColumns = false;
路 flex.ItemsSource = Product.GetProducts(200);
路 // create the columns
路 foreach (string property in "Line,Color,Name,Price,Weight".Split(','))
路 var col = new C1.WPF.FlexGrid.Column();
路 col.Header = property;
路 col.Binding = new Binding(property);
路 flex.Columns.Add(col);
路 }