how to know if a datagrid column is a template column?

D

Dexter

hello all,
i need to know, programatically, if a datagrid column is a template column,
at itemdatabound event.
somebody have a idea?

Thanks.

Dexter
____________________________________________________________________________

If (e.Item.ItemType = ListItemType.Header) Then
Dim quantidade = e.Item.Cells.Count
Dim a As Integer
For a = 0 To quantidade - 1

'Here i need to know if is a templatecolumn

Dim s As String = e.Item.Cells(a).Text
If s <> "" And s <> "&nbsp;" Then
e.Item.Cells(a).Text =
pergunta_nome_coluna(viewstate("Tabela"), s)
End If
Next
End If
____________________________________________________________________________
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top