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

how to insert update delete auto use RadGridView?

2 Answers 142 Views
GridView
This is a migrated thread and some comments may be shown as answers.
tuonglam
Top achievements
Rank 1
tuonglam asked on 01 Sep 2011, 09:33 AM
GridView WPF control can insert update delete automatic and insert connection to SQL.How can i do like that in RadGridView?if can,can you make a video to easy understand?I want to insert update delete like the demo Command of RadGridView 100% with SQL server using C#.how con i do?

thank you  thank you very very much!Please!

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Gartmann
Top achievements
Rank 2
answered on 01 Sep 2011, 12:21 PM
Hi tounglan,

what you should do is to subscribe to the RowsChanged Event of your Grid.

Lets asume you have a Dataset named KundenDS and a TableAdapter named 
KundenTableAdapter then your code block could looks like this

Private Sub rgvKunden_RowsChanged(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCollectionChangedEventArgs) Handles rgvKunden.RowsChanged
     KundenTableAdapter.Update(KundenDS)
End Sub

Sorry that i provide the code in VB.Net. Use Telerik Code converter for your needs.

See this link for more detailed information

http://msdn.microsoft.com/en-us/library/ms233819(v=vs.80).aspx


Kind Regards

Martin Gartmann
0
tuonglam
Top achievements
Rank 1
answered on 01 Sep 2011, 03:47 PM
I want to say thank you very much to Martin Gartmann!

Your post is very good but I expect use RadGridView control auto connect and command insert update delete like RadGridView command demo.Thank you very much!
Tags
GridView
Asked by
tuonglam
Top achievements
Rank 1
Answers by
Martin Gartmann
Top achievements
Rank 2
tuonglam
Top achievements
Rank 1
Share this question
or