Cannot be converted to 1-dimensional array of string
Bonjour, je bute sur ce code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| Dim bf As BoundField = Nothing
Dim hf As HyperLinkField = Nothing
If Not Page.IsPostBack Then
bf = New BoundField
bf.HeaderText = getWibMsg(796, "Sort", pLang)
bf.DataField = "categoryDesc" + pLang
bf.SortExpression = "categoryDesc" + pLang
GridView1.Columns.Add(bf)
bf.ItemStyle.Width = New Unit("140", UnitType.Pixel)
bf = New BoundField
GridView1.Columns.Add(bf)
hf = New HyperLinkField
hf.HeaderText = getWibMsg(796, "Sort", pLang)
hf.DataTextField = "CategoryDescFr"
hf.DataNavigateUrlFields = "idCategory"
hf.DataNavigateUrlFormatString = "~/Default.aspx?IdCategory={0}"
GridView1.Columns.Add(hf)
hf.ItemStyle.Width = New Unit("140", UnitType.Pixel)
hf = New HyperLinkField
GridView1.Columns.Add(hf) |
Le message d'erreur est: Une valeur de type 'String' ne peut pas être convertie en 'Tableau à 1 dimension(s) de String'
Je ne comprends pas ?