All pastes #559326 Raw Edit

Something

public text v1 · immutable
·published 2007-06-11 18:36 UTC
rendered paste body
            Products.TableStyles.Clear();
            DataGridTableStyle GridStyle = new DataGridTableStyle();

            GridStyle.MappingName = "Products";
            GridStyle.RowHeadersVisible = false;
            GridStyle.AllowSorting = false;
            GridStyle.HeaderFont = new Font ("Verdana",8,FontStyle.Bold);

            DataGridTextBoxColumn ProductId = new DataGridTextBoxColumn();
            ProductId.MappingName = "ProductId";
            ProductId.HeaderText = "Id";
            ProductId.Width = 38;
            ProductId.ReadOnly = true;
            GridStyle.GridColumnStyles.Add(ProductId);