Updating dataGrid

Oct 30 2003 8:20 PM
My data are stored in an array. I created a dataSet and dataTable for a dataGrid. I have multiple buttons on a form and each will alter the data in the array. What is the best way to update dataGrid to show the modified data? The compiler only allow me to execute this once. I need to update the dataGrid each time a button is clicked. //tmpSingle is the updated array. tmpRow = m_dataTable.Rows[0]; tmpRow.ItemArray = tmpSingle; Here are some of the compiling error messages: //Error : Input array is longer than the number of columns in this table. //Error : Rows does not have position 0. Any hints, Thanks!