471,315 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 software developers and data experts.

Table, Row and Cell problem


What problem has this code?

tablename is System.Web.UI.WebControls.Table

int X = 1;
int Y = 5;

tablename.Rows[Y].Cells[X].Text = "Test";

It's giving me an out of range exception..... I'm building the table
dynamically... should the Table already have rows and cells built in?
When I tried building them at design time it gave the same error.

Any help is appreciated :).. I surfed the internet but to no avail..

Jan 2 '06 #1
1 1114
It worked now.... rebuild application :| and worked sorry for the
wastage of the post.

Jan 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by steventhrasher42 | last post: by
1 post views Thread by Thanks | last post: by
reply views Thread by Thomas Scheiderich | last post: by
7 posts views Thread by slitvinov | last post: by
8 posts views Thread by chrisoftoday | last post: by
7 posts views Thread by Kamal | last post: by
1 post views Thread by Bart Lateur | last post: by
4 posts views Thread by [Jongware] | last post: by
3 posts views Thread by Harry | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.