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

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top