Hi,
I have to create GridViewColumn dynamically from the code behind. In addition to displaying value, each cell should display the value in tooltip (tooltip helps when the value is too long). I have read that I need to add textblock in order to add tooltip however I had no luck implementing tooltip in the code behind. I would appreciate a help on constructing the gridview with tooltip in code behind:
Here is the original construction (prior to adding textblock):
for (int i = 0; i < items.Length; i++)
{
var column = new GridViewColumn();
string bindingValue = "items["+i+"].DisplayValue";
column.DisplayMemberBinding = new Binding(bindingValue);
column.Header = items[i].Name;
grdView.Columns.Add(column);
}