Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > adjust the row height for some rows

Reply
Thread Tools

adjust the row height for some rows

 
 
SalamOnAltern
Guest
Posts: n/a
 
      06-07-2006
I am creating DataGrid Dynamically on the fly and binding an empty one
column datatable through a DataView object
I would like to dynamically adjust the row height for some rows of the
datagrid. Everything is done in the Page_Load event as follows

dgDynamic =
System.Activator.CreateInstance(GetType(DataGrid))
dgDynamic.AutoGenerateColumns = False
dgDynamic.CssClass = "dgcss"
dgDynamic.DataSource = CreateDataSource()
dgDynamic.DataBind()

Then when I try to acces the table control as follows I

'Dim Tbl As Table = dgDynamic.Controls(0)"
I get out of index error, when checking in a debug session
the dgDynamic.controls.coun = 0

Any ideas or example on how to manipulate the cells ?

Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't adjust the iFrame height to fit the contents. Cal Who ASP .Net 1 06-02-2010 02:21 PM
Can't adjust table height active ASP .Net Web Controls 0 04-03-2007 06:16 PM
Automatically adjust TextBox's height H. ASP .Net Web Controls 1 06-29-2005 06:31 PM
Why are my rows looking so ugly if table is small (height of each row is streched up)? Evert Wiesenekker ASP .Net Datagrid Control 1 06-01-2004 01:20 PM
How to adjust the height between two rows GhislainTanguay HTML 1 10-14-2003 04:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57