I am trying to make sure that when the user translates the rows in my DataGrid / dataview, each row will display a different prompt result.
I can’t figure it out. with a DataGrid, how can I say mouseOver in each row and provide row specific data? it looks like all of my regular sources on the internet aren’t causing anything!
no, if there is a way to do this work with datagridview, I don’t know how to fill it (datagridview), since my table changes in length every time the program starts. (the program monitors the signals, therefore, if more signals are received, the table has more rows ...)
* note: this is visual C # 2.0 in 2005 visual studio.
* ended as follows:
private void datagridSignal_MouseMove(object sender, MouseEventArgs e) { this.toolTip.Hide(datagridSignal); this.toolTip.RemoveAll(); DataTable dt = GetSignalTable(); DataView dv = new DataView(dt); Point prop = new Point(eX, eY); System.Windows.Forms.DataGrid.HitTestInfo myHitTest; prop = datagridSignal.PointToClient(prop); myHitTest = datagridSignal.HitTest(prop.X, prop.Y); this.toolTip.SetToolTip(datagridSignal, " ID = '" + (int)dv[myHitTest.Row][0] + "' "); }
source share