I need help too much.
I am getting the following exception:
Index 0 is either negative or above row count error
I researche
Which means the DataView, dataw is Empty(the query returns no records) . So you have to Check for Empty before accessing the Value from it.
dataw
DataView dataw = new DataView(ReturnTable(gmyquery)); if (dataw!=null && dataw.Count > 0) { // Your code here }