Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Dynamic table

Reply
Thread Tools

Dynamic table

 
 
Stevieke Stevieke is offline
Junior Member
Join Date: Oct 2010
Posts: 1
 
      10-12-2010
I want to create a dynamic table


int Hoogte = 7;
int Breedte = 7;
int CenterX = 10;
int CenterY = 10;
int BeginX;
int BeginY;

Double resultX = CenterX - (Breedte / 2);
BeginX = Convert.ToInt32(Math.Ceiling(resultX));

Double resultY = CenterY - (Hoogte / 2);
BeginY = Convert.ToInt32(Math.Ceiling(resultY));

Image Image = new Image();

int TellerX = 0;
int TellerY = 0;


Table TableMap = new Table();

while (TellerY < Hoogte)
{
TableRow TableMapRow = new TableRow();

while (TellerX < Breedte)
{
TableCell TableMapCell = new TableCell();
Image.ImageUrl = "/images/normal.jpg";

//TableMapCell.Text = "Test";
TableMapCell.Controls.Add(Image);
TableMapRow.Cells.Add(TableMapCell);
TellerX++;
}
TableMap.Rows.Add(TableMapRow);
TellerX = 0;
TellerY++;
}

MapPlaceHolder.Controls.Add(TableMap);

But i only get the picture 1 time and in fact i need it 7*7
can somebody help me?
 
Reply With Quote
 
 
 
 
qvo178 qvo178 is offline
Junior Member
Join Date: Aug 2008
Posts: 29
 
      10-20-2010
Did you have your problem solve?
 
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
Dynamic table with dynamic controls and mySql ... opius ASP .Net 0 06-17-2011 08:55 AM
Dynamic Table with Dynamic Button inside Kooki ASP .Net Web Controls 0 09-15-2005 07:12 PM
Adding dynamic LinkButton to dynamic table =?Utf-8?B?QkxpVFpXaU5H?= ASP .Net 0 07-27-2005 12:21 AM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM
Re: Dynamic Table with Dynamic LinkButtons Rick Glos ASP .Net 0 07-08-2003 01:09 PM



Advertisments