DataGridTableStyle myGridStyle = new DataGridTableStyle (); myGridStyle.MappingName = "Users"; DataGridColumnStyle colStyle1 = new DataGridBoolColumn (); colStyle2.MappingName = "Salary"; DataGridColumnStyle colStyle2 = new DataGridBoolColumn (); colStyle2.MappingName = "Position"; // Add column styles to table style. myGridStyle.GridColumnStyles.Add (colStyle1); myGridStyle.GridColumnStyles.Add (colStyle2); dgvResults.TableStyles.Add (myGridStyle);
dataGridView1.DataSource=dataSet1.Tables[0]; dataGridView1.Columns[0].HeaderText="My Custom Header";
DBGrid1.Columns[0].Title.Caption :='الاسم التجارى'; DBGrid1.Columns[1].Title.Caption :='الاسم العلمى'; DBGrid1.Columns[2].Title.Caption :='السعر'; DBGrid1.Columns[3].Title.Caption :='ملاحظات';
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)