Thank you for answering.
my research in the database returns more than one link, so when I do "for" to mount the column, it passes once and assigns the same link to the entire column.
Code:
Dim dt As New DataTable
Dim list As New List(Of ColumnBase)
Dim listContOcorr As New List(Of Object)
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
buildGrid()
End If
End Sub
Public Sub buildGrid()
dt = SearchStrore()
Dim sizeDt As Integer
Dim numeroModels As String = "1"
sizeDt = dt.Columns.Count
For i As Integer = 0 To sizeDt - 1
Me.buildModel(dt.Columns(i).ColumnName, i)
Next
gridOcorrenciaMes.Reconfigure(list)
Me.buildStore()
End Sub
Public Sub AddField(ByVal field As ModelField)
Me.storeOcorrencia.Model(0).Fields.Add(field)
End Sub
Public Sub buildModel(ByVal nomeModel As String, ByVal indice As Integer)
Me.AddField(New ModelField(nomeModel.ToString))
Dim colunaMes As String = nomeModel.Split("/")(0)
Dim ano As String
Dim mes As String
ano = nomeModel.Split("/")(0)
mes = nomeModel.Split("/")(1)
Dim coluna As New Ext.Net.HyperlinkColumn
coluna.Width = "70"
coluna.Align = Alignment.Center
coluna.ID = "Col" & nomeModel.Replace("/", "")
coluna.Text = nomeModel
coluna.DataIndex = nomeModel
coluna.Filterable = True
'coluna.HrefPattern = here I get my link
list.Add(coluna)
End Sub
Public Sub buildStore()
Me.storeOcorrencia.DataSource = dt
Me.storeOcorrencia.DataBind()
End Sub