1
我有下面的代码,成功地显示基于其绑定DataProperty在其列图像:的WinForms工具提示中的WinForms DataGridViewImageColumn
private void dgvTasks_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) {
if (dgvTasks.Columns[e.ColumnIndex] is DataGridViewImageColumn && e.ColumnIndex == 1) {
e.Value = ((bool)e.Value == true) ? Properties.Resources.ok : Properties.Resources.clock;
}
}
,但我想知道如何它可以在用户显示一个提示悬停在图像上?
woa ..很快 URA STAR !!!非常感谢!不知道为什么我没有想到这一点?无论如何,现在我已经有了,我可以计算出确定tooltiptext的逻辑。再次感谢。 – Shalan 2009-10-13 16:05:29