Fixing the Datagrid's Height

We've talked before about fixing the width of an ASP.NET Datagrid to a specific size, but I've been seeing a lot of questions recently about how to fix the height of a Datagrid.  (For example, keep the items from expanding their height on the last page of a page-able Datagrid).  I just wanted to point out Alexander Zeitler's article that covers this issue, “Fixing the ASP.NET Datagrid”

I also use a similar technique in my new article for CodeProject, Separating Datagrid Items.

Datagrid Girl

Published Wednesday, February 11, 2004 1:49 PM by datagridgirl


# re: Fixing the Datagrid's Height

hi marcie,

thank you for promoting my article.
wish you lot of fun @codeproject.


Wednesday, February 11, 2004 5:02 PM by Alex

# re: Fixing the Datagrid's Height

I know that my question is not related to this article but I faced with a problem. Can you help me ?
I make a page with a datagirid on it, after fiiling it, I want to place the contrnt of one cells in a Label Box But each time thr Label is Empty I dont know why.

Here is The Code I used :

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
DataBind()' Here Fills DataGrid1
Label2.Text = DataGrid1.Items.Item(t).Cells(1).Text
End If

End Sub

Friday, February 13, 2004 8:50 AM by Varipal

# re: Fixing the Datagrid's Height

pleas send me soon
to this address
I know you are busy, but please do it very soon

Saturday, February 14, 2004 10:10 AM by Varipal

# re: Fixing the Datagrid's Height


Friday, December 28, 2007 6:53 AM by abc