This project is read-only.

my .cshtml is giving only 2 columns instead of 6 columns but my sql output is showing all 6 columns

Nov 12, 2013 at 2:13 PM
Edited Nov 12, 2013 at 2:42 PM
Hi All
My .cshtml (Razor) is showing me only 2 columns instead of 6. I mean it is showing me column headers but not giving output in columns. But if I run same query in my sql database management studio, it is giving me proper 6 columns. Why?
I have following code in .cshtml file -

@grid.GetHtml(tableStyle: "grid",
                columns: grid.Columns(
                            grid.Column("Reseller", "Reseller"), 
                            grid.Column("Customer", "Customer"), 
                            grid.Column("Url", "URL"), 
                            grid.Column("SiteName", "Site Name"),
                            grid.Column("IsMobileOrNot", "Mobile or Not"), 
                            grid.Column("CreatedDate", "Created Date")));
If you need any data from me, please let me know....
Any help is appreciated...
Nov 13, 2013 at 3:33 AM
Are you sure that you are using Grid.Mvc? Grid.Mvc does not have api like: @grid.GetHtml