P
Paul
Hi I get the error (the data source for the gridview does not have any
properties from which do generate columns)
I am binding the data as follows, errors out on the databind line.
The linksDataRepository is retrieved from a session variable and is working
ok.
linksDataRepository = (List<structRepo>)Session["linksDataRepository"];
if (linksDataRepository != null)
{
gridview.DataSource = linksDataRepository;//
gridview.DataBind();
}
and for the gridview I have
<Columns>
<asp:BoundField DataField="abspath" HeaderText="absolute path" />
<asp:BoundField DataField="description" HeaderText="description" />
<asp:BoundField DataField="icount" HeaderText="Count" />
<asp:BoundField DataField="url" HeaderText="Url" />
</Columns>
as the structRepo is a structure with data abspath (string), description
(string), icount (Integer), url (string). Any ideas?
thanks.
properties from which do generate columns)
I am binding the data as follows, errors out on the databind line.
The linksDataRepository is retrieved from a session variable and is working
ok.
linksDataRepository = (List<structRepo>)Session["linksDataRepository"];
if (linksDataRepository != null)
{
gridview.DataSource = linksDataRepository;//
gridview.DataBind();
}
and for the gridview I have
<Columns>
<asp:BoundField DataField="abspath" HeaderText="absolute path" />
<asp:BoundField DataField="description" HeaderText="description" />
<asp:BoundField DataField="icount" HeaderText="Count" />
<asp:BoundField DataField="url" HeaderText="Url" />
</Columns>
as the structRepo is a structure with data abspath (string), description
(string), icount (Integer), url (string). Any ideas?
thanks.