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

[Solved] HeaderText in Gridview Columns with Bound

0 Answers 11 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Thi
Top achievements
Rank 1
Thi asked on 11 Feb 2011, 12:44 PM

I m using the below displayed code for Gridview. In this code directily used the DB field name (eg: c.Codigo) ,
But at the same time i want to  use my own HeaderText !!!!!!!!!!!!!!!!!!!!!

 

 

<%= Html.Telerik().Grid((List<Revenue.Model.Producto>)ViewData["Productos"])
                .Name("gridProductos")
                .Columns(columns =>
                             {
                                 columns.Bound(c => c.Codigo).Width(160);
                                 columns.Bound(c => c.Descripcion).Width(270);
                                 columns.Bound(c => c.FechaAlta).Width(150);
                                 columns.Bound(c => c.FechaBaja).Width(150);
                             })
                 .DataBinding(dataBinding => dataBinding.Ajax().Select("ObtenerProductos", "Producto"))
                 //.ClientEvents(events => events.OnRowSelect("OnRowSelect"))
                 .Scrollable()
                 .Pageable()
                 .Sortable()
                 .Filterable()                    
                 .Selectable()
%>

 

Tags
General Discussions
Asked by
Thi
Top achievements
Rank 1
Share this question
or