Hi,
Trying to follow the example in your documentation of connecting the carousel to a dataset
this.MyCarousel.ItemsSource = dsCarousel(); //My named dataset
I've created a dataset object using the 'Data Sources' option in VS2012. When I set the itemsource to the dataset name it's telling me datasource is a type but being used as a variable, which I understand.
this.RadCarousel1.ItemsSource = GetDataTable();
radCarousel1.DataMember = "Orders";
radCarousel1.ItemsSource = dataSet;
//MY CODE EXAMPLE BELOW
namespace WPFTest
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
this.MyCarousel.ItemsSource = dsCarousel();
}
}
}
What I don't understand is how exactly am I to interpret the example of assigning the dataset per the documentation? I can test and see data fill the dataset object using TableAdapter Config Wizard so I know it's connecting. But do I have to create this dataset completely in code to use it or am I missing or not understanding something very obvious. I'm new to windows programming and especially using WPF controls so I'm just trying to find my way here. Let me know if I've made sense at all?
Thanks in advance.
Tony
Trying to follow the example in your documentation of connecting the carousel to a dataset
this.MyCarousel.ItemsSource = dsCarousel(); //My named dataset
I've created a dataset object using the 'Data Sources' option in VS2012. When I set the itemsource to the dataset name it's telling me datasource is a type but being used as a variable, which I understand.
this.RadCarousel1.ItemsSource = GetDataTable();
radCarousel1.DataMember = "Orders";
radCarousel1.ItemsSource = dataSet;
//MY CODE EXAMPLE BELOW
namespace WPFTest
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
this.MyCarousel.ItemsSource = dsCarousel();
}
}
}
What I don't understand is how exactly am I to interpret the example of assigning the dataset per the documentation? I can test and see data fill the dataset object using TableAdapter Config Wizard so I know it's connecting. But do I have to create this dataset completely in code to use it or am I missing or not understanding something very obvious. I'm new to windows programming and especially using WPF controls so I'm just trying to find my way here. Let me know if I've made sense at all?
Thanks in advance.
Tony