Simple Questions

D

DC

I'm a newbie, and just moved to .NET programming, got confused with how
datagrid works.
Let say I have datagrid with 3 columns:

ID Name Price
1 Book 10
2 Pencil 5

Questions:
1. How do I make it, so on RowClick, it will redirect to specific page (say:
edit_row.aspx?id=[ id of clicked row ])
For example: if I click on Book, it will redirect me to
edit_row.aspx?id=1
if I click on 5 (Price in the 2nd row), it will
redirect me to edit_row.aspx?id=2
2. How to display Total Record in the left footer, and page navigation in
the right footer?
Something like this:

ID Name Price
1 Book 10
2 Pencil 5
-----------------------------
Total Record: 10 1 2 3...

I hope my questions make sense to you.

Thanks in advance for your help.

- DC
 
S

Saravana [MVP]

2. How to display Total Record in the left footer, and page navigation in
the right footer?
Something like this:

ID Name Price
1 Book 10
2 Pencil 5


Check out this article,
http://www.microsoft.com/india/msdn/articles/83.aspx



--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com



DC said:
I'm a newbie, and just moved to .NET programming, got confused with how
datagrid works.
Let say I have datagrid with 3 columns:

ID Name Price
1 Book 10
2 Pencil 5

Questions:
1. How do I make it, so on RowClick, it will redirect to specific page (say:
edit_row.aspx?id=[ id of clicked row ])
For example: if I click on Book, it will redirect me to
edit_row.aspx?id=1
if I click on 5 (Price in the 2nd row), it will
redirect me to edit_row.aspx?id=2
2. How to display Total Record in the left footer, and page navigation in
the right footer?
Something like this:

ID Name Price
1 Book 10
2 Pencil 5
-----------------------------
Total Record: 10 1 2 3...

I hope my questions make sense to you.

Thanks in advance for your help.

- DC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top