This is a migrated thread and some comments may be shown as answers.

An ArgumentOutOfRangeException occured after changed backcolor of GridHeaderCellElement

1 Answer 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
meo meo
Top achievements
Rank 1
meo meo asked on 12 Jul 2009, 08:24 PM
After I changed backcolor of GridHeaderCellElement in Element hierachy editor and press F5, an ArgumentOutOfRangeException was thrown. (The exception occured in this piece of code:
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
            ((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).Text = "CustomerID";
            ((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
)
I've strugged with this problem all day. Please help me.

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 14 Jul 2009, 03:22 PM
Hi meo meo,

Your account shows no downloads, so we assume that you have obtained our tools from the company you work for. Before addressing your question, we would like to request from you to contact the purchase holder in your company and ask him to add you as a License Developer to the purchase that the company holds. This will give you full access to the support and download sections, and will ensure that you get timely support, depending on the license you have purchased. More on License Developers you can find here: www.telerik.com/faq.

I suggest you use Visual Style Builder to create the desired style for your RadGridView. You can have a look at our courseware and online documentation in order to become familiar with our theming mechanism. There are also some movies related to Visual Style Builder which are definitely worth watching.

As for the exception, I am afraid I was not able to reproduce it. Please open a support ticket and send the application, if possible, so that I can debug it and see where the problem comes from.


Kind regards,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
meo meo
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or