hi
i have a datagridview and i want to display a text that user choose from a combobox to header text in a column in columns collection property.
Dim gpData As GridPanel = grvAirFlow.PrimaryGrid
Dim HeaderName As String = GU.TranslateWord(0, gLanguageID, "Pressure Drop", conn)
Dim iCol As Integer = 1
gpData.GetCell(i, iCol).Value = str(2)
gpData.Caption.Text = CaptionName & "(" & Format(GU.AssignNumericValue(XValue), vXDecimal) & " " & cbiAirFlows.SelectedItem.ToString & ")"
gpData.Columns. [ I DON'T KNOW WHAT I SHOULD INSERT HERE ] = HeaderName & "(" & cbiPressure.SelectedItem.ToString & ")"
that part that i remark seems that does not have any attribute that work for columns collection header text.I attach how my datagridview looks like.The blank area should appear PRESSURE DROP (PA).Pa value is selected from a combobox.
Attachment 98903
thanks in advance. :)
i have a datagridview and i want to display a text that user choose from a combobox to header text in a column in columns collection property.
Dim gpData As GridPanel = grvAirFlow.PrimaryGrid
Dim HeaderName As String = GU.TranslateWord(0, gLanguageID, "Pressure Drop", conn)
Dim iCol As Integer = 1
gpData.GetCell(i, iCol).Value = str(2)
gpData.Caption.Text = CaptionName & "(" & Format(GU.AssignNumericValue(XValue), vXDecimal) & " " & cbiAirFlows.SelectedItem.ToString & ")"
gpData.Columns. [ I DON'T KNOW WHAT I SHOULD INSERT HERE ] = HeaderName & "(" & cbiPressure.SelectedItem.ToString & ")"
that part that i remark seems that does not have any attribute that work for columns collection header text.I attach how my datagridview looks like.The blank area should appear PRESSURE DROP (PA).Pa value is selected from a combobox.
Attachment 98903
thanks in advance. :)