the datatable "dt" is not initialized. i.e. it's nothing
check where the datatable is being created and initialized properly.
Thanks,
Hemant
Edit:
Now check your dataset where are you filling values in your dataset. you've created the dataset
Dim cnGetData As New DataSet()
but are you filling it with proper data and is it being filled with the table
tbl_permits
. The top most source of data here is Dataset and then there are tables if you've
not filled the dataset properly.
Debug your code and watch if you have any table in
cnGetData
dataset
--Hemant