By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,972 Members | 1,454 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,972 IT Pros & Developers. It's quick & easy.

how can i change column in gridview

P: 1
how can i change column in gridview with css in visual studio 2005. my table has 5 rows and 4 columns.if i want to change 3 rd column can i change entire column or i must change separately. because i want to create class for properties for the column. did i have to put class in every <td class =""> for that column or i can change entire column.
Apr 13 '09 #1
Share this Question
Share on Google+
1 Reply


drhowarddrfine
Expert 5K+
P: 7,435
Haven't a clue how you would do it in vs or asp.net. In html, it would look like this:
Expand|Select|Wrap|Line Numbers
  1. <style type="text/css">
  2.     .col1{background-color:green}
  3. </style>
  4. <body>
  5. <table>
  6.     <colgroup></colgroup>
  7.     <colgroup><col class="col1">
  8.     <colgroup><colgroup>
  9.     <tr>
  10.         <td>1</td><td>2</td><td>3</td>
  11.     </tr>
  12.     <tr>
  13.         <td>1</td><td>2</td><td>3</td>
  14.     </tr>
  15. </table>
  16. </body>
  17.  
Apr 14 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.