Hi!
I am currently working on a project where i have to basically remake Itunes. I am currently working on the CoverFlow part (view by album in case you don't know) only by using VS controls mind you.
I have all my songs saved in an XML which i load to a DataSet that i can then use as a source for my DataGridView.
Now here's what's bugging me:
I've instantiated a new Datatable that only takes the unique album names from my main Music datatable (see code). I've even used that datatable as a source for a Combobox to make sure it worked.
The problem now is that I want to use my trackbar to navigate my unique album datatable so as to then select the albums from my main datatable (by comparing Album names). The idea then would be to display those Albums in my datagridview.
The idea basically being : How do i navigate my unique album datatable using my trackbar?
I was thinking of maybe adding an id column to my TableAlbum that would auto increment but i don't know if that'll work and i have no idea how to do it...
Thank you for any insight you might have
I am currently working on a project where i have to basically remake Itunes. I am currently working on the CoverFlow part (view by album in case you don't know) only by using VS controls mind you.
I have all my songs saved in an XML which i load to a DataSet that i can then use as a source for my DataGridView.
Now here's what's bugging me:
I've instantiated a new Datatable that only takes the unique album names from my main Music datatable (see code). I've even used that datatable as a source for a Combobox to make sure it worked.
The problem now is that I want to use my trackbar to navigate my unique album datatable so as to then select the albums from my main datatable (by comparing Album names). The idea then would be to display those Albums in my datagridview.
DataTable TableAlbums = new DataTable();
private void UpdateAlbumList()
{
TableAlbums = dataSet1.Pistes.DefaultView.ToTable(true, "Album");//The primary key for my Pistes datatable is a files' MD5 value
comboBox1.DataSource = TableAlbums;
comboBox1.DisplayMember="Album";
trackBarAlbums.Maximum = TableAlbum.Rows.Count;
}
private void trackBarAlbums_Scroll(object sender, EventArgs e)
{
//Navigate TableAlbums
}
The idea basically being : How do i navigate my unique album datatable using my trackbar?
I was thinking of maybe adding an id column to my TableAlbum that would auto increment but i don't know if that'll work and i have no idea how to do it...
Thank you for any insight you might have