By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,745 Members | 1,873 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,745 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
__________________________________________________ __________________________
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
myGrid.Columns(a).GetType()

Eliyahu

"Dexter" <pr******@yahoo.com.br> wrote in message
news:ee**************@TK2MSFTNGP09.phx.gbl...
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
__________________________________________________ __________________________

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.