DataGridView with DataSet Custom Value

1

Hello, good morning. I would like to ask you for help on the following situation:

I use the PostgreSQL database integrated with Visual Studio Enterprise with the (PostgreSQL Integration) Npgsql package. For those who do not yet know this package allows you to manage the direct VD from VS also to SQL Server.

But, to date, I did not have a problem with that since I only used to fill a DataGridView with what I have in the Bank.

It automatically generates the code:

this.backlogTableAdapter.Fill(this.dsGestorSQL.backlog);

This works perfectly for displaying Bank data, but I need to use a column of type DataGridViewCheckBoxColumn and as I said above it automatically generates a code that fills DataGridView would have a possibility to use this method next to a validation :

if(ValueColumn == "S")
{
    MarcarCheckBox(Exemplo);
} 
else
{
    CheckBoxVazio(Exemplo);
}

Does anyone know if there is such a possibility?

Thank you for your attention and help!

    
asked by anonymous 13.09.2018 / 15:58

1 answer

0

Thanks for trying to help, the application is in Windows Forms and the solution to this problem was to bring the "true" and "false" values from the database into a column of type "DataGridViewCheckBoxColumn" so it reads the value of the database and populates check box if it is set to "true". I hope my answer can also help more people with this doubt!

    
13.09.2018 / 18:58