Table, Row and Cell problem

  • Thread starter Thread starter Varangian
  • Start date Start date
V

Varangian

Hi,

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..
 
It worked now.... rebuild application :| and worked sorry for the
wastage of the post.
 
Back
Top