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 Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/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/
