Then that means your sql query doesn't return an data at all.. and that's why it throws an error because you referenced a row in the DataTable that dont have any data at all.
Vincent Maverick Durano
Microsoft MVP, CodeProject MVP, C# Corner MVP
Blog | Twitter | Linkedin
Member
260 Points
221 Posts
Telerik Grid Problem
Apr 22, 2011 12:52 AM|dLcreations|LINK
Hi Team,
I am Using Telerik RAD Grid.
I am using This Code To Bind GridView AS per Combobox Selected Item.
How to Solve It...?
PLease Help
All-Star
102952 Points
19469 Posts
MVP
Re: Telerik Grid Problem
Apr 25, 2011 07:42 AM|vinz|LINK
Have you checked if your query returns any rows? Before assigning value to your checkbox try to check for the row count like:
if(ds.Tables[0].Rows[0].Count > 0){
//Populate your TextBox
}
Microsoft MVP, CodeProject MVP, C# Corner MVP
Blog | Twitter | Linkedin
Member
260 Points
221 Posts
Re: Telerik Grid Problem
Apr 28, 2011 01:06 AM|dLcreations|LINK
No It Will not Return Any Rows There.....!!!
All-Star
102952 Points
19469 Posts
MVP
Re: Telerik Grid Problem
Apr 28, 2011 11:37 PM|vinz|LINK
Then that means your sql query doesn't return an data at all.. and that's why it throws an error because you referenced a row in the DataTable that dont have any data at all.
Microsoft MVP, CodeProject MVP, C# Corner MVP
Blog | Twitter | Linkedin
Member
260 Points
221 Posts
Re: Telerik Grid Problem
May 06, 2011 08:04 AM|dLcreations|LINK
THnx Got the Problem