25 lines
		
	
	
		
			458 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			458 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Linq;
 | |
| using System.Text;
 | |
| using System.Threading.Tasks;
 | |
| using System.IO;
 | |
| 
 | |
| namespace W2PGrid
 | |
| {
 | |
|     public class MyGrid : C1.Win.C1FlexGrid.C1FlexGrid
 | |
|     {
 | |
|         public string GetXML()
 | |
|         {
 | |
| 			string retstr = null;
 | |
| 			using (StringWriter sw = new StringWriter())
 | |
| 			{
 | |
| 				this.WriteXml(sw);
 | |
| 				retstr = sw.GetStringBuilder().ToString();
 | |
| 				sw.Close();
 | |
| 			}
 | |
| 			return retstr;
 | |
| 		}
 | |
|     }
 | |
| }
 |