vb.net datagrid column header

how do i change the column header in the datagrid ? i''m getting + sing and " table " on the datagrid at the loading ?how do i remove it ?

1 Reply

AD Administrator Syncfusion Team June 30, 2004 11:21 PM UTC

You''ll have to create DataGridTableStyle and add GridColumnStyle to it somthing like this ''Bind you DataGrid to the datasource. DataGrid1.DataSource = myDataSet.Tables("TableName") Dim myTS As New DataGridTableStyle ''Set MappingName for TableStyle myTS.MappingName = "TableName" ''Create 1st column. Dim myCOL As New DataGridTextBoxColumn With myCOL .MappingName = "App_ID" .HeaderText = "Applicant ID" End With myTS.GridColumnStyles.Add(myCOL) ''Create 2nd column. myCOL = New DataGridTextBoxColumn With myCOL .MappingName = "FirstName" .HeaderText = "First Name" End With myTS.GridColumnStyles.Add(myCOL) ''Add TableStyle to the DataGrid. DataGrid1.TableStyles.Add(myTS)

Loader.
Up arrow icon