Of course nothing is happening, as your code does not work on any data. You have the following:
private void btnTest_Click(object sender, EventArgs e)
DataTable table = new DataTable();
foreach (DataRow row in table.Rows)
As you can see
does not contain any rows or columns, so there is nothing to work on. You must first read some data into it. Or, assuming you initialise a
somewhere else, you need to access the table that contains the actual records.