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);