Error on page post action

Jan 14, 2016 at 4:50 PM
Hi,

I have a page that includes a form and a MVC grid.
When the page posts the form, I get the following error on the post action:

Column 'XXXXXXX' already exist in the grid
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Column 'XXXXX' already exist in the grid


I'm using custom columns like this:

Columns.Add(o => o.Customers.CompanyName)
            .Titled("Company Name")
            .Sortable(true)
            .SetWidth(220);
Thanks!
Jan 19, 2016 at 10:44 AM
Hi Limanima

as per your code everything looking fine . Can you please send more detailed error (snapshot of error)

With Thanks
Satyanshu
Jan 25, 2016 at 8:52 PM
Forget about it.
It's working...
Thanks!