Dim leavecmd As New OracleCommand
Dim leaveadp As New OracleDataAdapter
Dim leaveds As New DataSet
leavecmd.CommandText = searchtravellleavatypesql
leavecmd.Connection = oraConn
leaveadp.SelectCommand = leavecmd
If IsDBNull(leaveds.Tables("LeaveTA").Rows(1)("columna")) Then
i have the above code...i am trying to read the value in row 1 of the datatable, when there is now record in that row, i am getting an exception
"system.indexoutofrangeexception: there is no row at position 1"
i am displaying the value returmned from the datatable on the form, so if there is no record at particular row, i want to display no text in the particular text box...
How can i handle this exception..