This is a migrated thread and some comments may be shown as answers.

Index out of range in Textbox for no rows returned

2 Answers 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pete
Top achievements
Rank 1
Pete asked on 09 Jun 2009, 09:58 AM
Hi, if I have a stored procedure that could return either a number or rows or no rows for a given report parameter, but if the stored proc returns no rows can I update the textbox to show either "No rows found" or with the data returned from the stored procedure.

I don't think I can use the IsNull because there are no rows returned for this particular report parameter. When in the textbox I have =Fields.ColumnName I get an error saying "index is out of range" when no rows are returned, otherwise if data is returned it shows the field ok. Is there a solution for this ?

Thanks a lot,

Pete.

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Jun 2009, 06:21 AM
Hi Pete,

Your question has been already answered in this forum thread.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pete
Top achievements
Rank 1
answered on 12 Jun 2009, 07:34 AM
Thanks a lot, I will try this now.
Tags
General Discussions
Asked by
Pete
Top achievements
Rank 1
Answers by
Steve
Telerik team
Pete
Top achievements
Rank 1
Share this question
or