Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27373

VS 2010 how to display text in columns collection headertext in datagridview

$
0
0
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. :)
Attached Images
 

Viewing all articles
Browse latest Browse all 27373


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>