I'm working on a bioinformatics application that requires parsing text files into datasets that are then bound to a datagridview to make the data easier to work with. The problem I have is that the data in the datatable is not in sync with the data in the datagridview after a column sort event is performed. There must be an easy way to bind the datagridview data to the datatable data. Here is the simple code that I'm using:
dgv.AutoGenerateColumns = True
dgv.DataSource = DS 'DS is the dataset that holds many tables, including the FASTA_DATA table
dgv.DataMember = DS.Tables("FASTA_DATA").TableName '"FASTA_DATA"
The goal is to perform a sort and have the data updated in the datagridview also updated in the datatable. I should note that I'm not a professional programmer, but a biologist who knows just enough VB to be dangerous, so I greatly appreciate your help!