Localisation

Docs

By default date and currency formatting will be based on the server culture settings this can be overridden using the Culture property if required

Culture
Razor
                                
                                        
DbNetGridCore ordersGrid = new DbNetGridCore("northwind", "Customers join Orders on Customers.CustomerID = Orders.CustomerID join [Order Details] on Orders.OrderID = [Order Details].OrderID");
ordersGrid.Columns = new List() { "Customers.CompanyName", "Orders.OrderDate", "[Order Details].OrderID", "[Order Details].ProductID", "[Order Details].UnitPrice", "[Order Details].Quantity" };
ordersGrid.Labels = new List() { "Company Name", "Order Date", "Order ID", "Product", "Unit Price", "Qty" };
ordersGrid.Culture = Model.Culture;
ordersGrid.Column("UnitPrice").Format("c");
ordersGrid.Column("ProductID").Lookup(new Lookup("Products", "ProductId", "ProductName"));
@ordersGrid.Render()