Datagrid issue

laloush83

Member
Joined
Oct 26, 2005
Messages
9
Programming Experience
Beginner
I have a datagrid and a label, the datagrid have three columns, one of these columns is numeric.. when the form loads the datagrid is empty and the label text is set to 0 .. every time I add a new row to the datagrid and enter a number in the numeric column .. this number should be added to the amount existing in the label.text ... how can I do that?
 
I assume it will be changing an underlying table....

VB.NET:
dim i as integer
i += convert.toint32(Tablename.Rows(rowindex).Item(columnName))
label.text = convert.tostring(i)
 
Best thing to do is have a look and see what events the table raises. It may for example.. Raise a 'Column Changing' event which would mean that you could put that code in there.
 
Back
Top