'What's the difference between Render and GetHtml methods in DevExpress?

I would like to know whats the difference between using the method Render vs. using the method GetHtml, when using the DevExpress MVC Extensions? I know that GetHtml returns a MvcHtmString, and Render returns void, but I want to know what could be a practical difference to choose which one to use.



Solution 1:[1]

Per the DevExpress site, it looks like they now do the same thing:

http://www.devexpress.com/Support/Center/p/Q388623.aspx

At present, the Render and GetHtml methods do the same thing: return a render string. Previously, the Render method wrote a render string to a Response directly. We have changed this behavior due to the following Breaking Change:

Solution 2:[2]

They almost the same. while writing this I had to switch rendering a button on a form layout to Gethtml. trying to hide that button will work in a funky way using render. switching it to getHTML worked!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gromer
Solution 2 Mr Twinkies