Hello everyone.
I'm having a hard time trying to do anything with the dataGridView border. Id like to chang its color and shape of a two different cells using Visual c++ and making a Windows form application.
Code:
DataGridViewAdvancedBorderStyle^ dgv1ph;
DataGridViewAdvancedBorderStyle^ dgv1i;
dgv1ph->Right = DataGridViewAdvancedCellBorderStyle::OutsetDouble;
this->dataGridView1->Rows[1]->Cells[1]->AdjustCellBorderStyle(dgv1ph, dgv1ph,true, true,true, true);
this->dataGridView1->Rows[3]->Cells[3]->AdjustCellBorderStyle(dgv1ph, dgv1ph,true, true,true, true);
This code above in principle should hange the right border of the cells 1,1 and 3,3 but as it do compile, a i try to run that part of the code the application breaks with system null reference exception.