or
EditRecurrenceDialog dialog = new EditRecurrenceDialog(appointment); dialog.Show(); this.tSQL = "EXEC dbo.GetDetailsForCodeType '" + strSelectedCode + "','" + strSelectedCodeType + "'";
DataTable dtMarketDetails = this.da.GetDataTable(this.tSQL);
this.dgMarketDetails.DataSource = dtMarketDetails;
As a test I setup another GridView and pre set the data source and that exports just fine.
Text----------DescriptionText----------DescriptionTextDescription----------TextDescriptionprivate void SearchTypeList_CreatingVisualListItem(object sender, CreatingVisualListItemEventArgs e){ e.VisualItem.BorderColor = SystemColors.Control; //e.VisualItem.Children[0].Children[1].Children[1].ShouldPaint = false; foreach(var child in e.VisualItem.Children) { if(child is StackLayoutElement) { foreach(var child1 in child.Children) { if(child1 is StackLayoutElement) { foreach(var child2 in child1.Children) { if(child2 is LinePrimitive) { child2.ShouldPaint = false; return; } } } } } }}
