Personal Blog of Mustafa Basgun

Archive for the ‘GridView’ Category

Manipulating ColSpan Attribute of Footer Row in GridView

with 8 comments

There may be some cases that the Footer of a GridView is desired to be displayed as one cell, which means setting the ColumnSpan property of the Footer’s first cell to the number of columns of the GridView. As there are some other possible workarounds to accomplish this, here is my way by adding a few lines to the OnRowCreated method.

First, make sure that ShowFooter property of the GridView is set to True:






Written by Mustafa Basgun

January 20, 2008 at 2:00 PM