Hi all,
I have a simple question:
how can I bound the data in a string[] to a gridview?
the string[] list has 1 collumn and I just want to databound the items (for ex.: 3 dimensions, so 3 items) to a simple gridview...
with the code bellow I allready see how many rows that wil be displayed...
this is my starting code:
string[] lijst;
lijst = strFiles.Split(
'$');
GridView1.DataSource = lijst;
GridView1.DataBind();
and the startingcode on the webform:
<
asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="524px">
<Columns>
<asp:ButtonField ButtonType="Button" CommandName="Edit" HeaderText="resend" ShowHeader="True"
Text="resend">
<ControlStyle CssClass="plaintxt" Width="50px" />
<FooterStyle BorderWidth="50px" />
</asp:ButtonField>
<asp:TemplateField HeaderText="files">
<ItemTemplate>
<asp:Label Text="DataItem. COntainer" runat="server" ID="fg"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
thanks in advanced...