You must Sign In to post a response.
  • Category: Windows

    Close Icon at right end of datagridview

    Manually created popup datagridview where i can edit rows and columns in window application..

    In that datagridview,i need close icon at top right end..

    Dim closeicon As New DataGridViewImageColumn()
    Dim img As Image = Image.FromFile("./close.jpg")
    closeicon.Image = img

    I need this image at right end of datagridview..How to bring over there
  • #742478
    step 1: add close button

    step 2: change the close button location when datagridview resize.

    private void dataGridView1_Resize(object sender, EventArgs e)
    {
    this.datagridclosebtn.Location = new System.Drawing.Point(this.dataGridView1.Size.Width - 25, 0);
    }


  • Sign In to post your comments