How to Display Data in DataGrid
-
Hi Friends, I have to xml files with on common field them. How can I display data from both the file using dataview and dataset. Plz send me reply soon. Its very urgent. Thank u all in advance.
-
Hi Friends, I have to xml files with on common field them. How can I display data from both the file using dataview and dataset. Plz send me reply soon. Its very urgent. Thank u all in advance.
Not all xml file can be shown on the grid, It has to be in proper schema, or manually you have to file in a DataTable of a DataSet. Whenever a DataSet is writen into a xml file, it format the xml file in a recognized format, and preferable with its schema. The same xml file can be read into a DataSet. And at last , DataSource property of DataGrid can be set to that DataSet to show the xml file. Refer : DataSet.Load(), DataSet.WriteXml() for further information. love2code
-
Not all xml file can be shown on the grid, It has to be in proper schema, or manually you have to file in a DataTable of a DataSet. Whenever a DataSet is writen into a xml file, it format the xml file in a recognized format, and preferable with its schema. The same xml file can be read into a DataSet. And at last , DataSource property of DataGrid can be set to that DataSet to show the xml file. Refer : DataSet.Load(), DataSet.WriteXml() for further information. love2code
Hi, Thanx for ur Reply. U suggested a good way to user xml schema. I am using schemas to store data in xml file. I think there are some methods using which we can put a relation ship between two tables in xml file. But I dont know how use them properly. If u know this way then plz let me know. Thank u again.