Are you sure that the collection has 2 columns? Travis D. Falls | Consultant RAFT.Net IT | 860.547.4070 | [EMAIL PROTECTED]
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Mark E Sent: Friday, December 16, 2005 8:49 AM To: [email protected] Subject: Re: [AspNetAnyQuestionIsOk] Can I access cssstyle property of a header in a datagrid? Dean, I'm getting the following error when I run the page: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index I tried changing the index but all values throw the same error. Any idea why? Thanks, Mark ----- Original Message ---- From: Dean Fiala <[EMAIL PROTECTED]> To: [email protected] Sent: Friday, December 16, 2005 8:35:47 AM Subject: Re: [AspNetAnyQuestionIsOk] Can I access cssstyle property of a header in a datagrid? Yes. dg.Columns[2].HeaderStyle.CssClass = "SomeCSS"; On 12/16/05, Mark E <[EMAIL PROTECTED]> wrote: > Is something like this possible? > > datagrid.header.column[2].cssstyle = "SomeCSS"; > > I need all my datagrid columns to have the same style except 1. Since I > don't manually code my header columns, I need to do this in code-behind. Is > this possible? > > Thanks, > Mark > > [Non-text portions of this message have been removed] > > > > > > Yahoo! Groups Links > > > > > > > > -- Dean Fiala Very Practical Software, Inc http://www.vpsw.com SPONSORED LINKS Basic programming language Computer programming languages Programming languages Java programming language YAHOO! GROUPS LINKS Visit your group "AspNetAnyQuestionIsOk" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed] Yahoo! Groups Links ************************************************************************* This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
