hello
i have a DataGrid table and by the help of Adnan, here in the forum, i have the Mouse_up Event that by Clicking a row on the dataGrid it's selectes the whole ro
the problem is when i'm pressing the scroll arrows (to move the rows up\down\left\ri ght) the whole stays selected except the cell which i pressed
how can i prevent that from hapenning
here with the Mouse_Up method
private void dataGrid1_Mouse Up(object sender, System.Windows. Forms.MouseEven tArgs e
m_X=e.X
m_Y=e.Y
DataGrid myGrid = (DataGrid)sende r
DataGrid.HitTes tInfo myHitInfo = myGrid.HitTest( e.X, e.Y)
if (myHitInfo.Type == DataGrid.HitTes tType.Cell || myHitInfo.Type == DataGrid.HitTes tType.RowHeader
myGrid.Select(m yHitInfo.Row)
myGrid.CurrentR owIndex = myHitInfo.Row
int someSampleID = Convert.ToInt32 (myGrid[myHitInfo.Row,0])
thank you all
Gid