Welcome Guest Search | Active Topics | Sign In | Register

An error ocurred when I use the backcolor property in the grid Options
David R.
Posted: Tuesday, February 24, 2009 11:15:12 AM
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.
eo_support
Posted: Tuesday, February 24, 2009 11:22:16 AM
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!
eo_support
Posted: Friday, March 6, 2009 11:05:57 AM
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.html

The 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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.