This is a migrated thread and some comments may be shown as answers.

Refreshing the grid

2 Answers 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
timtom
Top achievements
Rank 1
timtom asked on 08 Aug 2008, 11:21 AM
Hi :o)

I'm just starting out with your winforms toolkit and having lots of fun with the grid which is brilliant.

What I'm having a job with is refreshing it when returning from a details screen. I've got it working ok but when restoring the select row to the position before I update it jumps around and doesn't look professional.

This is how I'm doing it  - is there a better way

        Dim Pos As Integer = Me.RadGridView1.CurrentCell.RowIndex
        Me.ClientsListTableAdapter.Fill(Me.Clients.ClientsList)
        Me.RadGridView1.CurrentRow = Me.RadGridView1.Rows(Pos)

Many thanks and well done on a great set of tools

Tim 

2 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 08 Aug 2008, 02:58 PM
Hello timtom,

Thank you writing.

You could try to surround your code with BeginUpdate and EndUpdate methods:
 
Me.radGridView1.GridElement.BeginUpdate() 
 
'your code 
 
Me.radGridView1.GridElement.EndUpdate() 

If this does not suit to your scenario, please let me know.
 

Sincerely yours,
Martin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
timtom
Top achievements
Rank 1
answered on 08 Aug 2008, 03:53 PM
Thanks for that Martin - perfect :o)
Tags
GridView
Asked by
timtom
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
timtom
Top achievements
Rank 1
Share this question
or