Hello,
I have some small problem, (which I can not solve :(
I have dgv with imported excel file in, it, and one columns holds some numbers, what I need is each cell in that column to be filled with value (CAN NOT BE EMPTY) and on button click I was trying to programatically filled it but it's not working
this is the code on button click
foreach (DataGridViewRow row in dgImport.Rows)
{
if (row.Cells["Expense"].Value == null)
{
row.Cells["Expense"].Value = "0";
}
}
dgImport.Update();
dgImport.Refresh();