Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Reply
Gridview - Dataitemindex from code-behind - Urgent
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Riddhi Valecha
9y
484
1
Reply
Hi all..
Please help me out with code-behind coding ..
I have a method -
private void BindGridView()
{
Datatable table ;
Gridview grdv ;
table = new Datatable();
grdv = new GridView();
if(table != null)
{
grdv . datasource = table;
grdv.databind();
Here -
I want the following -
<asp:TemplateField>
<ItemTemplate>
<asp:label id = "lbl" runat="server" text = Container.dataitemindex + 1 >
</ItemTemplate>
</asp:TemplateField>
How to do this is code - behind ?? Please guide !!
}
}
My Requirement is - I have to do nothing on aspx page.
I have to do all in code-behind - Default.aspx.cs page.
Please help..its a bit urgent... Thanks in advance !!
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
can anyone help me
How to upload and save image in user profile?