I am trying to add a tooltip to a specific column that may or may not be present, depending on the results of an sqlite query. The columnheaders are filled in from the query results.
I have this code to fill the datagrid:
SQLiteCommand command = new SQLiteCommand(sql, m_dbConnection);
SQLiteDataAdapter sda = new SQLiteDataAdapter(command);
sda.Fill(dt);
MainDataGrid.ItemsSource = dt.DefaultView;
I would like to do something like:
if(ColumnHeader == "Gauge")
{Column.Tooltip.Text = "Double click Gauge # to view details";} //Tooltip shows for entire column
But, I can't imagine it's that easy. I am completely self taught in c# and wpf, so a lot of my problems come from not knowing how to word the question properly. I am not looking for a copy-paste answer. Just a link(s) and an explanation.