I have a winforms application correctly displaying data from a dataset.
When a user double clicks on a row it opens a document associated with that row - I want the row to then be highlighted (ie create a border around it) so that the user knows they have viewed that item.
the code i'm using for this is:
dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderColor = Color.Blue
dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderColor = Color.Blue
dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.OuterInnerBorders
dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.DrawBorder = True
this works fine - until i use the scroll bars - the highlights stay in the same place visually - but this now highlights the wrong items.
Help please......
When a user double clicks on a row it opens a document associated with that row - I want the row to then be highlighted (ie create a border around it) so that the user knows they have viewed that item.
the code i'm using for this is:
dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderColor = Color.Blue
dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderColor = Color.Blue
dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.OuterInnerBorders
dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.DrawBorder = True
this works fine - until i use the scroll bars - the highlights stay in the same place visually - but this now highlights the wrong items.
Help please......