Is it not possible to bind gridview without using queries.. [Resolved]

Posted by Oswaldlily under ASP.NET on 1/27/2012 | Points: 10 | Views : 1083 | Status : [Member] | Replies : 2
Is it not possible to bind gridview without using queries..


<asp:GridView ID="gv" runat="server">
<Columns>
<asp:TemplateField HeaderText="Upload Image" HeaderImageUrl="~/About.aspx" >

</asp:TemplateField>
</Columns></asp:gridview>

protected void Page_Load(object sender, EventArgs e)
{
gv.DataBind();
}

nothing gets bind....




Responses

Posted by: Blessyjees on: 1/27/2012 [Member] Bronze | Points: 50

Up
0
Down

Resolved
hi,

you need to specify what data bind to grid, otherwise you can't see anything in grid.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hemanthlaxmi on: 1/27/2012 [Member] Starter | Points: 25

Up
0
Down
No you can't bind the without the data source

If this helps you .
Please "Mark as Answer"

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response