+ 1
Is it possible To fill all empty cells in your Datagridview with value = "0" automatically at form load.If possible please help
datagridview fill with the value "0" at form loading.
3 Réponses
+ 1
if you can enumerate the datagrid then yes. use a foreach. foreach(var v in datagrid.Items)
v.text = "0";
this is pseudocode so I'm sorry if its not 100% correct.
+ 1
Ok i will try and see. There is also a default value attribute in datagridview that all empty with the value of your choice. But the problem is, it does not really fill the datatable with zero only the datagrid view is been filled.
0
But l'm about to use an update sql query for that.