Yes i am using the dgReport.RenderControl
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Dim oStringWriter As New System.IO.StringWriter
Dim oHtmlTextWriter As New System.Web.UI.HtmlTextWriter(oStringWriter)
oHtmlTextWriter.Write("<html><head>")
oHtmlTextWriter.Write("<style>")
oHtmlTextWriter.Write(".dataGridHeader{font-weight: bold;font-size:
8pt;color: black;font-family: Verdana;background-color: #ddddee;text-align:
left;}")
oHtmlTextWriter.Write(".dataGridItemStyle{font-size: 8pt;color:
black;font-family: Verdana;text-align: left;}")
oHtmlTextWriter.Write("</style>")
oHtmlTextWriter.Write("</head><body>")
oHtmlTextWriter.WriteBeginTag("form runat=server ")
oHtmlTextWriter.WriteAttribute("target", "_blank")
oHtmlTextWriter.Write(">")
dgReport.RenderControl(oHtmlTextWriter)
oHtmlTextWriter.Write("</form></body></html>")
Response.Write(oStringWriter.ToString())
Response.End()
"Scott Allen" wrote:
How are you doing the expert? Using Control.Render or some other
technique? Show us some code to help find the problem.
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Mon, 18 Oct 2004 16:29:03 -0700, "vinay"
<vi***@discussions.microsoft.com> wrote:
I have created a Master-Detail DataGrid
The detail grid is embedded inside the Mastergrid with each row.
Adding the detail grid in ItemDatabound event.
I am exporting the Grid to a Excel.
In the excel sheet only Master grid content shows up and NOT the detail grid??
Why is the detail grid not showing up in the excel??
Thanks
vinay