Here is the cool piece of code to Enumerate XmlDataSource Tabular/Hierarchical: You have an XmlDataSource on your page and you wish to enumerate the items as tabular data private void EnumerateDataSource() { IDataSource ds = XmlDataSource1 as IDataSource; if (ds != null) { XmlDataSourceView xmlDsView = ds.GetView(String.Empty) as XmlDataSourceView; if (xmlDsView != null) { IEnumerator enumerator = xmlDsView.Select(DataSource... while (enumerator.MoveNext()) { //Retrieve ......
http://msdn.microsoft.com/vstudio/downloads/codesnippets/default.aspx#VCS
You can download Huge list of CodeSnippets from the above link.......... Enjoy coding and codesnippets will make it more enjoyable......................