Click here to Skip to main content
15,902,492 members

Comments by Member 8649895 (Top 2 by date)

Member 8649895 27-Mar-13 13:55pm View    
what are you trying to acheive exaclty !! I hope title property works !!
Member 8649895 25-Mar-13 11:08am View    
Sorry, i am not familiar with devexpress to say more clearly

GridView view = MyXtraGrid.Views[0] as GridView;
int index = 0;
int topVisibleIndex = 0;
if (view != null)
{
index = view.FocusedRowHandle;
topVisibleIndex = view.TopRowIndex;
}

MyXtraGrid.BeginUpdate();
MyXtraGrid.DataSource = collection;
MyXtraGrid.RefreshDataSource();

if (view != null)
{
view.FocusedRowHandle = index;
view.TopRowIndex = topVisibleIndex;
}

MyXtraGrid.EndUpdate();

Try this hope it helps