Your Ad Here

Hosting Gratis
Free SQL Query Builder
Free Adware Removal
Free Antivirus Downloads
Free Software
Protect your PHP Scripts
Crack Password
Adsense Money
Lowongan kerja
Yahoo Hosting

Free vbnet matrik
Mahasiswa
VB control
Visual basic
Visual basci tutorial
VB6 library
VB6 protection
Mp3 indonesia
VB source code
Lock folder
MSQ SQL Forum
Table SQL
Java SQL
Connect SQL
SQL database
dotnetnuke SQL
Convert VB6
Visual Basic6
secure VB
Excel to MySQL
wallpapers
visual studio
Client Server
File Server
SQL server pop
Restore SQL
SQL Databases
Free text chat
Flash text
C# control
Visual studio
Web developers
SQL Basics
SQL tutorial
Java Code
ASP Function
SQL Tracking
SQL Comparison
Postgres SQL
VB6 Projects
PHP Store
PHP Ecommerce
E-Commerce CMS
SQL Driver

changing backround vb 2005

Your Ad Here  

IDE : VS 2005
Platform : .NET 2.0
BackColor DataGridView Columns
I'm trying to set the backcolor of the columns of a datagridview based on the text entered into a textbox(txtPosit). First of all, this code works:
Code:
For Each column As DataGridViewColumn In Me.dgvMaster.Columns
If column.HeaderText = Me.txtPosit.Text Then
column.DefaultCellStyle.BackColor = Color.LightGray
End If
Next

The problem I'm having is formatting multiple columns based on the text that is NOT the name of one of the columns (This is a program to filter positions of a baseball database). One of the filter options is "Middle", and when this is selected, I would like to set the backcolor of the 2B and SS columns in the datagridview. Here's what I thought would work:

Code:
If Me.txtPosit.Text = "Middle" Then
For Each column As DataGridViewColumn In Me.dgvMaster.Columns
If column.HeaderText = "2B" Or column.HeaderText = "SS" Then
column.DefaultCellStyle.BackColor = Color.LightGray
End If
Next
End If

seo
Search Engine Optimization and SEO Tools

stop watch vb2005 send email vb2005 windowsAPI Timer calculator vb2005 audio video vb2005 clock crystal vb ne image slide show vb2005 media player vb2005 cetak vb2005 mainkan Video di vb2008 Check if contents of DataGridView edited by user CheckBox in DataGridView How Can I make Edit for data create an insert SQL table column on datagridview Importing a Text file Loading image files Resizing Form using Timer Update data vb2005 deleting data Splash Screen VB2005 crystal report vb2005 koding-koding contoh project vb2005 implementasikan bahasa pemrograman vb.net mengembangkan vb.net mendownload download secara gratis jual beli uang asing vb

anes 2008