WPF - overlay text on top of datagrid row -


i have wpf datagrid rows disabled. in addition disabling cell contents, i'd present user text overlays row explanation such "row disabled due ...". same effect of having label control lower z-order sitting directly in front of datagrid row's cells.

if cell text spillover possible (like in excel), create text column of 0 width message, let message runover through neighboring cells. knowledge type of text spillover isn't possible in datagrid.

if rows have fixed height, add transparent datagrid on top of other datagrid. transparent datagrid have 1 column show disabled explanation. simple hacky solution.

the proper way use adorners. here's example of datagrid adorners.


Comments