Click here to Skip to main content
15,886,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am a beginner programmer. I want to create a grid view in my web form but i do not
want to use database. I am creating static web form pages. Someone told me to create object and list to create static grid. plz help me and sorry my english is little weak ignore it.

What I have tried:

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
BackColor="White" />
<columns>
<asp:TemplateField HeaderText="ID">
<edititemtemplate>
<asp:TextBox ID="TextBox1" runat="server" Text="1">

<itemtemplate>
<asp:Label ID="Label1" runat="server" Text="Label1">


<asp:TemplateField HeaderText="Name">
<edititemtemplate>
<asp:TextBox ID="TextBox2" runat="server" Text="Mohit">

<itemtemplate>
<asp:Label ID="Label2" runat="server" Text="Label2">
Posted
Updated 6-Jul-17 8:48am

1 solution

You can also use XmlDataSource control: How to use XmlDataSource Control in ASP.Net Example[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900