public static void DataBindLayoutTemplate(ListView listView)
        {
            listView.ThrowIfNull(() => new ArgumentNullException("listView"));

            // Create a databound layout template.
            var template = new Control();
            listView.LayoutTemplate.InstantiateIn(template);
            template.DataBind();

            // Remove the existing, non-databound layout template.
            listView.Controls.RemoveAt(0);

            // Add the databound layout template.
            listView.Controls.Add(template);
        }