Torna al Thread

Dim tcc As TableCellCollection = e.Row.Cells Dim nTotalCols As Integer = tcc.Count For i As Integer = nTotalCols - 1 To 1 Step -1 e.Row.Cells.RemoveAt(i) Next Dim c As TableCell = e.Row.Cells(0) c.ColumnSpan = nTotalCols Dim dr As System.Data.Common.DbDataRecord = DirectCast(e.Row.DataItem(), System.Data.Common.DbDataRecord) c.Text = "Id regione = " & dr(0).ToString() & ", Nome regione = " & dr(1).ToString()
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5