added and update code to support the gridview demos..for ui layouts.