Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   adding serial no column in a bounded data grid (http://www.velocityreviews.com/forums/t71690-adding-serial-no-column-in-a-bounded-data-grid.html)

Vikramaditya Singh 01-28-2004 06:59 AM

adding serial no column in a bounded data grid
 
i want to show a serial no column in a data grid which is bounded to a data
table. Is it possible. does datagrid has some property to do this





=?Utf-8?B?QXZuZWVzaA==?= 01-28-2004 09:16 AM

RE: adding serial no column in a bounded data grid
 
You can use the event named "OnItemDataBound" to create/Add serial numbers to the datagrid rows.

Sub RowSerial(s object, e as DataGridItemEventArgs)
If e.Item.ItemType <> ListItemType.Header Then
' Additon to cell 0 goes here
End If
End sub

Write further if more clarification are required.

Avneesh


Vicky 01-28-2004 11:42 AM

Re: adding serial no column in a bounded data grid
 
Thanks it works for me


"Avneesh" <avneesh@helloprojects.com> wrote in message
news:E9ECACE5-F904-46E5-88D2-ED03B5AC9C09@microsoft.com...
> You can use the event named "OnItemDataBound" to create/Add serial numbers

to the datagrid rows.
>
> Sub RowSerial(s object, e as DataGridItemEventArgs)
> If e.Item.ItemType <> ListItemType.Header Then
> ' Additon to cell 0 goes here
> End If
> End sub
>
> Write further if more clarification are required.
>
> Avneesh
>




Saravana [MVP] 01-28-2004 01:25 PM

Re: adding serial no column in a bounded data grid
 
Check out this article
http://www.extremeexperts.com/Net/Co...eqNumber2.aspx

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



"Vikramaditya Singh" <vicksjaipur@rediffmail.com> wrote in message
news:Og9gKwW5DHA.1816@TK2MSFTNGP12.phx.gbl...
> i want to show a serial no column in a data grid which is bounded to a

data
> table. Is it possible. does datagrid has some property to do this
>
>
>
>





All times are GMT. The time now is 01:39 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.