Exemplo n.º 1
0
 private void dgPortfolioDetails_ElementExported(object sender, GridViewElementExportedEventArgs e)
 {
     if (e.Element == ExportElement.Row)
     {
         var value = e.Context as PortfolioDetailsData;
     }
 }
        private void ElementExported(object sender, GridViewElementExportedEventArgs e)
        {
            if (e.Element == ExportElement.Row)
            {
                GL obj = e.Context as GL;
                if (obj != null)
                {
                    e.Writer.Write(@"<tr><td style=""background-color:#CCC;"" colspan=""{0}"">", ((RadGridView)sender).Columns.Count);

                    e.Writer.Write("<b>GLCode:</b> {0} <br />", obj.GLCode);
                    e.Writer.Write("<b>Title:</b> {0} <br />", obj.Title);


                    e.Writer.Write("</td></tr>");
                }
            }
        }
Exemplo n.º 3
0
        private void ElementExported(object sender, GridViewElementExportedEventArgs e)
        {
            if (e.Element == ExportElement.Row)
            {
                Employee obj = e.Context as Employee;
                if (obj != null)
                {
                    e.Writer.Write(@"<tr><td style=""background-color:#CCC;"" colspan=""{0}"">", ((RadGridView)sender).Columns.Count);

                    e.Writer.Write("<b>Birth date:</b> {0} <br />", obj.BirthDate);
                    e.Writer.Write("<b>Hire date:</b> {0} <br />", obj.HireDate);
                    e.Writer.Write("<b>Address:</b> {0} <br />", obj.Address);
                    e.Writer.Write("<b>City:</b> {0} <br />", obj.City);
                    e.Writer.Write("<b>Notes:</b> {0} <br />", obj.Notes);

                    e.Writer.Write("</td></tr>");
                }
            }
        }
        private void ElementExported(object sender, GridViewElementExportedEventArgs e)
        {
            if (e.Element == ExportElement.Row)
            {
                Employee obj = e.Context as Employee;
                if (obj != null)
                {
                    e.Writer.Write(@"<tr><td style=""background-color:#CCC;"" colspan=""{0}"">", ((RadGridView)sender).Columns.Count);

                    e.Writer.Write("<b>Birth date:</b> {0} <br />", obj.BirthDate);
                    e.Writer.Write("<b>Hire date:</b> {0} <br />", obj.HireDate);
                    e.Writer.Write("<b>Address:</b> {0} <br />", obj.Address);
                    e.Writer.Write("<b>City:</b> {0} <br />", obj.City);
                    e.Writer.Write("<b>Notes:</b> {0} <br />", obj.Notes);

                    e.Writer.Write("</td></tr>");
                }
            }
        }