Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using tooltips of columns in a datagridview

Status
Not open for further replies.

Fysicus

Programmer
Jan 21, 2003
1
BE
I wrote a program where in a form I'm displaying a datagridview. It's configuration occurs in the following function:

private void GridLoad()
{
// Listing competenties
grdCompetenties.DataSource = m_oCompetenties.Lijst;
grdCompetenties.RowHeadersVisible = false;
grdCompetenties.ColumnHeadersVisible = false;
grdCompetenties.AllowUserToAddRows = false;
grdCompetenties.AllowUserToDeleteRows = false;
grdCompetenties.AllowUserToOrderColumns = true;
grdCompetenties.DefaultCellStyle.BackColor = Color.FromName("BlanchedAlmond");
grdCompetenties.AlternatingRowsDefaultCellStyle.BackColor = Color.FromName("Wheat");
// sComptentie_ID
grdCompetenties.Columns[0].Visible = false;
// sNaam
grdCompetenties.Columns[1].Width = 100;
grdCompetenties.Columns[1].ToolTipText = "Benaming";
// sBeschrijving
grdCompetenties.Columns[2].Width = 363;
grdCompetenties.Columns[2].ToolTipText = "Beschrijving";
// bSelected
grdCompetenties.Columns[3].Width = 20;
grdCompetenties.Columns[3].ToolTipText = "Van toepassing op deze persoon?";
// nGraad
grdCompetenties.Columns[4].Width = 20;
grdCompetenties.Columns[4].ToolTipText = "Beheersinsgraad (1 tot 10)";
// sExtra
grdCompetenties.Columns[5].Width = 138;
grdCompetenties.Columns[5].ToolTipText = "Extra info?";
}

As you can see, it's the idea to show tooltips, so users can see what every field serves for.

Now weirdly enough, it doesn't work. I can let the mouse pointer hover over the fields for hours, it shows nothing except for a 0 on the field nGraad.

Anybody here with an idea of what I'm doing wrong?
 
They are usually shown automatic to the hidden value?
Is the
dataGridView1.ShowCellToolTips = true;
Set?

Age is a consequence of experience
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top