Hi Sonam,
Thanks for using Syncfusion products.
Your requirement of applying skin to grid can be achieved by setting the property AutoFormat() in cshtml page. Please refer to the code-snippet below.
[Index.cshtml]
@{ Html.Syncfusion().Grid
("Grid1")
.Datasource((IEnumerable)ViewData["data"])
.ActionMode(ActionMode.JSON)
.AutoFormat(Skins.Midnight)
.Column(column =>
{
column.Add(p => p.OrderID).HeaderText("Order ID");
column.Add(p => p.EmployeeID).HeaderText("Employee ID");
column.Add(p => p.CustomerID).AllowEditing(false);
column.Add(p => p.ShipCountry).HeaderText("Ship Country");
column.Add(p => p.OrderDate).HeaderText("Order Date").Format("{0:MM/dd/yyyy}");
column.Add(p => p.Freight).HeaderText("Freight");
})
.EnablePaging()
.EnableSorting()
.Caption("Orders")
.EnableGrouping()
}
Please refer to the below link to download the sample application.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=inlineedit-razor-mvc-630860359.zip
Please let me know if you have any concern.
Regards,
Ranjithkumar.