با سلام
چگونه می تان یک عکی را در GridView نشان داد
با سلام
چگونه می تان یک عکی را در GridView نشان داد
سلام
System.Windows.Forms.DataGridViewImageCell cell = new DataGridViewImageCell();
cell.Value = Image.FromFile(@"[FileName]");
dataGridView1.Columns.Add("1", "Image");
dataGridView1.Rows.Add();
dataGridView1.Rows[0].Cells[0] = cell;
میشه یکی توضیح بده این عکسی که قرار داریم توی یک سلول رو چطوری Strech کنیم که وقتی کاربر ابعاد سلول جدول رو تغییر داد عکس هم همزمان بزرگ یا کوچیک بشه ؟
سلام
کد:
System.Windows.Forms.DataGridViewImageCell cell = new DataGridViewImageCell();
cell.Value = Image.FromFile(@"[FileName]");
dataGridView1.Columns.Add("1", "Image");
dataGridView1.Rows.Add();
dataGridView1.Rows[0].Cells[0] = cell;
cell.ImageLayout = DataGridViewImageCellLayout.Stretch;