Reputation: 1024
DataGridView has 7 columns with headers (ID, TITLE, AUTHOR, GENRE, PRICE, PUBLISH, DESCRIPTION). On data in datagridview from xml file, two columns order is changed and new order is (ID, AUTHOR,TITLE, GENRE, PRICE, PUBLISH, DESCRIPTION). What is reason behind this ?
Reading from the xml file
Application.DataSet dsFileData = new DataSet("Books");
dsFileData.ReadXml(lSoruceFile);
dgvBooksDetails.DataSource = dsFileData;
dgvBooksDetails.DataMember = "book";
Upvotes: 9
Views: 8273