![]() |
|
|
|||||||
![]() |
ASP Net - Adding a Incrementing Column to a Grid View |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I have a grid view which takes its data from an SQL query.
The query returns a league Table of results. I would like to a add a column which show the poistion of result (i.e 1,2,3,4) how can i get add a column which simply showns an incremented number for each row. Glenn |
|
|
|
|
#2 |
|
Posts: n/a
|
just add a column and give it the value of the grid view current row
index. rjl |
|
|
|
#3 |
|
Posts: n/a
|
You could generate it in the original SQL statement. Use a temp table with
an identity column, and fill it with the original data, and then select from the temp table. Jeff "Glenn" <> wrote in message news: oups.com... >I have a grid view which takes its data from an SQL query. > > The query returns a league Table of results. I would like to a add a > column which show the poistion of result (i.e 1,2,3,4) > > how can i get add a column which simply showns an incremented number > for each row. > Jeff Dillon |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TRADING FEMALE CELEB INTERVIEWS ON DVD | stu | DVD Video | 1 | 05-26-2008 09:39 AM |
| ASP.Net 2.0 - Want details view but need control & placement of textboxes etc. | daveydave999 | Software | 0 | 10-05-2007 04:12 PM |
| asp.net : custom code to delete data from Grid view (Database) | sara_23apr | Software | 1 | 06-19-2007 01:08 PM |
| Grid view in link using C# | yogarajan | Software | 0 | 05-05-2007 08:28 AM |