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?
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?