It doesn't display at all when loaded or on postback.
This is from a vs2008 default Webform1.aspx with no css applied
<eo:Grid ID="Grid1" runat="server" BorderColor="#C7D1DF" BorderWidth="1px"
ColumnHeaderAscImage="00050303" ColumnHeaderDescImage="00050304"
ColumnHeaderDividerImage="00050302" FixedColumnCount="1" Font-Bold="False"
Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="9pt"
Font-Strikeout="False" Font-Underline="False" GridLineColor="199, 209, 223"
GridLines="Both" Height="200px" ItemHeight="19" Width="380px" ScrollBars="None">
<FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" />
<ItemStyles>
<eo:GridItemStyleSet>
<ItemStyle CssText="background-color: white" />
<ItemHoverStyle CssText="background-image: url(00050206); background-repeat: repeat-x" />
<SelectedStyle CssText="background-image: url(00050207); background-repeat: repeat-x" />
<CellStyle CssText="padding-left:8px;padding-top:2px; color:#336699;white-space:nowrap;" />
</eo:GridItemStyleSet>
</ItemStyles>
<ColumnTemplates>
</ColumnTemplates>
<Columns>
<eo:StaticColumn HeaderText="Name" AllowSort="True" DataField="Name" SortOrder="Ascending">
</eo:StaticColumn>
<eo:StaticColumn HeaderText="Location" AllowSort="True" DataField="Location" SortOrder="Ascending">
</eo:StaticColumn>
<eo:StaticColumn HeaderText="Statement" AllowSort="True" DataField="Statement" SortOrder="Ascending">
</eo:StaticColumn>
</Columns>
<ColumnHeaderStyle CssText="background-image:url('00050301');padding-left:8px;padding-top:2px;font-weight: bold;color:white;" />
</eo:Grid>
here is the page load
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
createGrid();
}
}
private void createGrid()
{
XmlTextReader myXmlReader = new XmlTextReader(Server.MapPath("Testimonials.xml"));
DataSet myDataSet = new DataSet();
myDataSet.ReadXml(myXmlReader);
myXmlReader.Close();
this.Grid1.DataSource = myDataSet.Tables[0];
this.Grid1.DataBind();
}
and some data (add multiple rows)
<?xml version="1.0" encoding="utf-8" ?>
<Testimonials>
<Testimonial>
<Name>My Name</Name>
<Organization>Personal</Organization>
<Phone>My Phone</Phone>
<Email>My email</Email>
<Location>My State</Location>
<Statement>My statement</Statement>
<AdminReleased>true</AdminReleased>
</Testimonial>
</Testimonials>