Simple question:
i define an array :
i define a datagrid :
Why does it give me the error :
????
--
i define an array :
Code:
subdir = System.IO.Directory.GetDirectories("\\bla\\");
string CorrectString;
testGrid1.DataSource = subdir;
testGrid1.DataBind();
i define a datagrid :
Code:
<asp:datagrid id="testGrid1" runat="server" AutoGenerateColumns="False" EnableViewState="False">
<Columns>
<asp:HyperLinkColumn HeaderText="Test" DataNavigateUrlField="subdir" DataNavigateUrlFormatString="relreq.aspx?id={0}"/>
</Columns>
</asp:datagrid>
Why does it give me the error :
Code:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: A field or property with the name 'subdir' was not found on the selected datasource.
????
--