Datagrid problem while loading XML data
-
Hai friends, Iam creating an application that uses a datagrid with two combobox and two textbox columns. Iam able to save the info from datagrid to XML file. But when the time of opening XML file to datagrid it retrieves the datagrid error. Please help me to remove this error and load XML data in to datagrid...:confused: Thanks in advance KP
-
Hai friends, Iam creating an application that uses a datagrid with two combobox and two textbox columns. Iam able to save the info from datagrid to XML file. But when the time of opening XML file to datagrid it retrieves the datagrid error. Please help me to remove this error and load XML data in to datagrid...:confused: Thanks in advance KP
-
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion
-
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion
Hai, Sorry for delay. went for lunch Piece of code
private RibbonStyle.RibbonButton rbtnOpen; private System.Windows.Forms.DataGridView datagrid1; private System.Windows.Forms.DataGridViewTextBoxColumn txtSlNo; private System.Windows.Forms.DataGridViewTextBoxColumn txtEntities; private System.Windows.Forms.DataGridViewComboBoxColumn cmbType; private System.Windows.Forms.DataGridViewComboBoxColumn cmbSubType;
txtSlno : Auto generation txtEntity : user data cmbType : Combobox data(loaded programmatically) cmbSubType : Combobox data(loaded programmatically) I want to load the data from the XML file(explained below) to the datagrid while openning XML file.
<NewDataSet> <EntityTable> <SlNo>1</SlNo> <Entity>X</Entity> <Type>Data</Type> <SubType>EIF</SubType> </EntityTable> <EntityTable> <SlNo>2</SlNo> <Entity>Y</Entity> <Type>Data</Type> <SubType>ELF</SubType> </EntityTable> <EntityTable> <SlNo>3</SlNo> <Entity>Z</Entity> <Type>Transaction</Type> <SubType>EI</SubType> </EntityTable> </NewDataSet>
Regards, KP