Customizing datagridview in C #

0

I'm doing a project and I'm having customization issues in my datagrid, as the information in the two textbox returns in the same datagrid I can not customize the header of the two, but rather just one, does anyone know how to sort it with the creation of a method or something?

    
asked by anonymous 13.05.2016 / 01:36

1 answer

0

André,

What you're trying to do is not how, because they're different results, this kind of grid is not meant for that.

1) If you need to display two results at the same time, you will have to build two grids on the screen.

2) If you just need to display one result, time another, I suggest that the grid columns mount dynamically, this is how you do it.

     private System.Windows.Forms.DataGridViewTextBoxColumn coluna;
     this.dgvEventos.Columns.Add(this.coluna);
    
13.05.2016 / 22:07