This is a migrated thread and some comments may be shown as answers.

[Solved] VB.NET Columns

1 Answer 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christelle
Top achievements
Rank 1
Christelle asked on 24 Jul 2011, 10:56 PM
Hello,

I've got problem using .Columns in VB.NET
Binding my grid to the data is ok. I can display the grid with all the columns and data inside.

Now, I'm just trying to change a column title with this command :

This is my code :

 

gridDemandes.Columns(Function(columns) columns.Bound(Function(p) p.NOM_DEMANDEUR).Title("Nom"))

And this is the error code (sorry it's in french :)) :

 

 

 

L'invocation de la méthode a échoué parce que 'Public Function Columns(configurator As System.Action`1[[Telerik.Web.Mvc.UI.Fluent.GridColumnFactory(Of GridColumnFactory(Of DataRowView))) As Telerik.Web.Mvc.UI.Fluent.GridBuilder(Of DataRowView)' ne peut pas être appelé avec ces arguments :
L'argument qui correspond au paramètre 'configurator' ne peut pas être converti de 'VB$AnonymousDelegate_1(Of Object,Object)' en 'Action(Of GridColumnFactory(Of DataRowView))'. 

I've been trying to use this component for three days and every step is a pain without any VB documentation.
Any help really appreciated.

Best Regards
Christelle

1 Answer, 1 is accepted

Sort by
0
d
Top achievements
Rank 1
answered on 18 Mar 2012, 02:50 AM
  gridBuilder.Columns(Function(columns) columns.Bound(Function(o As SuplPortal.Models.modelUser) o.username).Title("User Name").Width(200).ReadOnly(True))
Tags
Grid
Asked by
Christelle
Top achievements
Rank 1
Answers by
d
Top achievements
Rank 1
Share this question
or