Bind a TextBox to the Sum of a DataTable Column
问题 Context I would like to have a footer under my grid to show some stats about the datas. Such as Sum of some columns and average of some other. Half solutions I've found I've found two things intersting to help me do this, binding the databox to a bindingSource, BUT it's only the selected line that is shown into the textBox... myTextBox.DataBindings.add("Text", myGrid.DataSource,"Weight") And getting the Sum of a column in the grid, BUT it doesn't update if I change the grid :S myTextBox.Text