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

Resetting RadGridView

2 Answers 233 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 13 Feb 2009, 05:27 PM
Hi whenever I 'reset' a RadGridView to see the latest data, I get duplicate rows by filling again. My RadGridview is filled dynamically. An help would be appreciated.

 

 

 

If DBConn.ConnectionString <> "" Then

 

 

 

 

 

daDataAdapter =

New SqlDataAdapter(CurrentBeo.sCurrentSql, DBConn)

 

daDataAdapter.Fill(DSData, CurrentBeo.sTableToUpdate)

bsMaintenance.DataSource = DSData

bsMaintenance.DataMember = CurrentBeo.sTableToUpdate

grdMain.DataSource = bsMaintenance

bnMain.BindingSource = bsMaintenance

 

End If

 

2 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 16 Feb 2009, 05:29 PM
Hi Derek,

Try setting the DataSource property of the RadGridView to null before you bind it again.

Do not hesitate to get back to me if the suggested approach does not work for you.
 

Greetings,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Derek
Top achievements
Rank 1
answered on 17 Feb 2009, 08:53 AM
I just cleared the datatable. Thanks.
Tags
GridView
Asked by
Derek
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Derek
Top achievements
Rank 1
Share this question
or