GridView RowCreated Handler Issues

  • Thread starter Thread starter bigbrorpi
  • Start date Start date
B

bigbrorpi

I'm having a problem with a Gridview bound to an objectdatasource. I've
created a handler for onRowCreated with something as simple as:

msgbox(e.row.cells(1).text)

When the page loads, I see all of the data rows from my datasource, but
the e.row.cells(1).text comes up blank for every row except the header
and footer.

Does anybody see what I might be missing here?

Thanks
 
Well, for one thing, you can't use msgbox, it's on the server!

Perhaps you meant response.write

What does the data look like coming from the datasource? Is it a SQL query?
What does the query return in Query Analyzer, if so

Jeff
 

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

Back
Top