Rank: Newbie Groups: Member
Joined: 2/19/2009 Posts: 1
|
Hi,
I have a grid and I want to set de backcolor to white or any other color, when I do this the grid disappears and I see a rectangle with this message "An error ocurred while rendering the control: Index was outside the bounds ot the array", then when I clear the backcolor property the grid returns to the normality, I don´t have any idea, could you help me?
Thanks a lot.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi David,
That appears to be a bug. We will try to fix it as soon as possible. In the mean time, you can try to put the Grid inside a standard asp:Panel control and then set background color on that panel control. Sorry about the problem.
Thanks!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, We have confirmed this to be a .NET bug. You can find more information about this bug at here: http://potterspages.blogspot.com/2007/12/found-my-first-silly-coding-mistake-in_13.htmlThe writer did provide a workaround however for this particular case, placing the Grid into another element might be a much easier solution. The root of the problem lies inside HtmlTextWriter, which is a core ASP.NET class that we would prefer not to tamper with. Thanks!
|