I am using an aggregate function to display the sum of the column values in the footer. But in some cases I want to hide the footer text. Is this possible to do in runtime (i.e. set visibility for footer text)?
In order to achieve your goal, you need to use custom footer as shown in this demo. The same example is available in your local copy of WPF demos. Then you can bind the Visibility property of the TextBlocks to a boolean property in your ViewModel. For your convenience, I have prepared a sample project showing you the approach.