View Full Version : استفاده از DataGridView با Backgroundcolor بصورت Transparent
MostafaAhmadi
شنبه 12 مرداد 1387, 17:21 عصر
من می خواهم یک DataGridView در فرمم داشته باشم که Backgroundcolor آن را بصورت Transparent بتونم تعریف کنم.
tthenry14plus
یک شنبه 13 مرداد 1387, 02:26 صبح
Backgroundcolor خود دیتاگرید رو نمیشه ولی Backgroundcolor ردیف هاشو میشه،
که اگر جدولتون پر باشه با اینکار به خواستتون میرسید
dataGridView1.DefaultCellStyle.BackColor = Color.FromArgb( درصد شفافیت رنگ , dataGridView1.DefaultCellStyle.BackColor);
dataGridView1.DefaultCellStyle.SelectionBackColor = Color.FromArgb( درصد شفافیت رنگ , dataGridView1.DefaultCellStyle.SelectionBackColor) ;
یا
dataGridView1.DefaultCellStyle.BackColor = Color.Transparent;
dataGridView1.DefaultCellStyle.SelectionBackColor = Color.Transparent;
MostafaAhmadi
یک شنبه 13 مرداد 1387, 08:53 صبح
Backgroundcolor خود دیتاگرید رو نمیشه ولی Backgroundcolor ردیف هاشو میشه،
که اگر جدولتون پر باشه با اینکار به خواستتون میرسید
dataGridView1.DefaultCellStyle.BackColor = Color.FromArgb( درصد شفافیت رنگ , dataGridView1.DefaultCellStyle.BackColor);
dataGridView1.DefaultCellStyle.SelectionBackColor = Color.FromArgb( درصد شفافیت رنگ , dataGridView1.DefaultCellStyle.SelectionBackColor) ;
یا
dataGridView1.DefaultCellStyle.BackColor = Color.Transparent;
dataGridView1.DefaultCellStyle.SelectionBackColor = Color.Transparent;
از توجهتون متشکرم اما این راه حل مشکل من را حل نمی کند,چون من نیاز دارم که پشت DataGridview من دیده بشه.
tthenry14plus
دوشنبه 14 مرداد 1387, 00:26 صبح
:اشتباه: .................
vBulletin® v4.0.8, Copyright ©2000-1391, Jelsoft Enterprises Ltd.