data row retrival from datatable

S

sada

Hi,

I have a datatable. I want to just retrive one row from
it and display it on some web page. I am sure, this is
very simple. But I am having difficulty in doing that.

The problem is how to retrive the row from the table. I
tried the table.rows(1) to lets say retrive the second
row. The table has that row present. When I write line in
my program in following way:

Dim datarow1 As DataRow
datarow1 = testtable.rows(1)

I get an error saying,

"Nullreferenceexception: Object reference not set to an
instance of an object."


Also, how to bind the datarow object to some web control
so that I can display that row on a web page.

Thanks in advance.

Sada
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top