Hi, my goal is just connect two Sql tables in my couple of Gridview.
I'm using third-vendor stuff but concepts here will be welcomed anyway for any kind of control.
So, does anyone have any Master-detail RadGridView (I've got 4.5 Framework version on WPF projects) or typical GridView available?
I'm populating them using code-behind classic ADO stuff. I know that it is a bit old-fashioned way to work but I am in a hurry and I reallly need to get some solution:
Here you have my xaml declaration:
<telerik:RadGridView x:Name="dgvUsuarios" ItemsSource="{Bindingv_empleados}" HorizontalAlignment="Left"
Margin="10,44,0,0" VerticalAlignment="Top" Height="217" Width="469" ColumnWidth="SizeToCells"
AutoGenerateColumns="False"
PreviewMouseDoubleClick="dgvUsuarios_PreviewMouseDoubleClick" Grid.ColumnSpan="2"
Grid.RowSpan="2">
code-behind:
Dim connexio As SqlConnection
Dim ada As New SqlDataAdapter()
Dim ds As New DataSet
Dim sSql As String = "SELECT * FROM v_empleados"
connexio = New SqlConnection("Server='ENRIC-PC\ENRIC';Initial Catalog=Talleres;User ID=usrTalleres;Password=cesarenric;current language=spanish")
connexio.Open()
ada = New SqlDataAdapter(sSql, connexio)
ada.Fill(ds, "v_empleados")
Me.dgvUsuarios.DataContext = ds
Thanks in advance for your help,
Enric
Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF/SilverLight projects.