I am adding columns to a datagrid view using a variable
UserVGrid.Columns.Add(newline[1], newline[1]);
Which works fine, but I don’t seem to be able to work out how to add a tooltip for when I hover over the column description.
I want some thing like
UserVGrid.newline[1].tooltip = "some text in here"
But this is not allowed, can any one tell me the right code for it?
regards
Aaron (DEvilWAH)
You need to set
ToolTipText. It is a property of theDataGridViewColumn.This is one possible solution:
Alternatively, you can refer to the column after it has been added to set the
ToolTipTextproperty: