So I am trying to add a title value to my DataGrid
cell based on another cell within the same row.
I have an event triggered on ItemCreated
which currently sets the cell to the HeaderText
using e.Item.Cells[i].Attributes.Add("title", DataGrid.Columns[i].HeaderText)
But now I have a new requirement that a certain column's title needs to be based on a different columns value.
But when I go to use e.Item.Cells[otherColumnIndex].Text
it returns an empty string
Do I have to use a different property? How do I get the current value of a Cell, since i assumed the data is populated before this event is triggered. . Unless the data is filled in after the ItemCreated
event?