Hi All,
I have a FormControlGrid with multiple columns on it that has a specifically defined sort order set in the init() method, and I would like to disable user sorting of columns. I don't want to disable the grid since I'd like users to be able to click fields in the grid to navigate to different parts of Dynamics via the grid, but even that doesn't disable their ability to change the sort order.
I've tried overriding the sort() method on a column in the [ClassName extends FormRun] per this post (thank you, Martin), but it doesn't seem to have any effect. What am I missing here? Putting a breakpoint on the String class never gets hit. Do I need to somehow call that class? Isn't it being automatically intialized?
[Control("String")]
class DATASOURCENAME_CONTROL
{
/// <summary>
///
/// </summary>
/// <param name = "_sortDirection"></param>
/// <returns></returns>
public int sort(SortOrder _sortDirection)
{
int ret;
//ret = super(_sortDirection); //COMMENT OUT SUPER
return ret; // <--BREAKPOINT
}
}
Any help would be greatly appreciated.
Edit: If it's helpful, the datasource on the form is a View and the View uses a query as a datasource.