====================================================== ImageType|| imageurl(linkButton)|| delete(button)|| ====================================================== Face ||d:\Temp\Face.jpg || delete|| FullImage ||d:\Temp\FullImage .jpg || delete|| ======================================================
// // ImageType // this.ImageType.HeaderText = "ImageType"; this.ImageType.Name = "ImageType"; // // Attachment // this.Attachment.HeaderText = "Attachment"; this.Attachment.Name = "Attachment"; this.Attachment.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.Attachment.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; this.Attachment.Width = 130; // // DeleteImg // this.DeleteImg.FillWeight = 50F; this.DeleteImg.HeaderText = "Delete"; this.DeleteImg.Name = "DeleteImg"; this.DeleteImg.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.DeleteImg.Width = 50; // code : if (File.Exists(imagePath)) { string result = Path.GetFileNameWithoutExtension(imagePath); string[] row = new string[] { result, imagePath }; dataGridViewAttachment.Rows.Add(row); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)