PDA

View Full Version : سوال: تغییر رنگ متن چند سطر خاص DataGridView



Reza798
دوشنبه 08 آذر 1389, 21:30 عصر
با سلام

میخواستم چند سطر از DataGridview را بعد از لود دیتا رنگ متنش را عوض کنم. کسی روشی برای اینکار سراغ دارد.

sarbazi
سه شنبه 09 آذر 1389, 10:23 صبح
تغيير رنگ dataGridView

به صورت يك در ميان

dataGridView1.AlternatingRowsDefaultCellStyle.Back Color = Color.LemonChiffon;
DataGridViewCellStyle dgcell = new DataGridViewCellStyle();
dataGridView1.GridColor = Color.Orchid;
dataGridView1.BackgroundColor = Color.Bisque