I have ListView
with several CheckBox
created through the database.
I wanted to CheckBox
by hovering the mouse, I opened a tooltip with various information in that field.
I have tried to do the MouseMove
event, but it did not work.
Creation code for ListView
:
private void Search()
{
mUpdater = new DatabaseUpdaterService();
mUpdater.Initialize(false, null);
DataTable dt = mUpdater.GetVersionCheckBoxToUpdate();
UltraListViewSubItem subItem;
List<UltraListViewSubItem> subItemArray;
foreach (DataRow row in dt.Rows)
{
subItemArray = new List<UltraListViewSubItem>();
subItem = new UltraListViewSubItem();
subItem.Value = row["Path"].ToString();
subItemArray.Add(subItem);
subItem = new UltraListViewSubItem();
subItem.Value = row["LastChanged"].ToString();
subItemArray.Add(subItem);
subItem = new UltraListViewSubItem();
subItem.Value = row["Path"].ToString();
subItemArray.Add(subItem);
UltraListViewItem item = new UltraListViewItem(
row["Version"].ToString(), subItemArray.ToArray());
item.Tag = (int)row["ID"];
this.listView.Items.Add(item);
this.Invalidate();
}
}