【发布时间】:2009-10-13 15:47:48
【问题描述】:
我有以下代码根据绑定的 DataProperty 在其列中成功显示图像:
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;
}
}
但我想知道当用户将鼠标悬停在图像上时如何显示工具提示?
【问题讨论】:
标签: image datagridview tooltip winforms