wtr.WriteElementString("Width", this.dataGrid1.TableStyles[0].GridColumnStyles[i].Width.ToString());but When I try to read from the XML file and assign the saved column with back to the datagrid column
this.dataGrid1.TableStyles[0].GridColumnStyles[iCounter].Width = Convert.ToInt16(rdr.Value);this line throws an exception stating that GridColumnStyles doesn't have an indexer.
MessageBox.Show(this.dataGrid1.TableStyles[0].GridColumnStyles[iCounter].Width.ToString()); //this.dataGrid1.TableStyles[0].GridColumnStyles[iCounter].Width = Convert.ToInt16(rdr.Value);Is there something I am missing?