This question is locked. New answers and comments are not allowed.
I would like to access my RadGrid Control and count the dataitems in it , in my code.
Following is a code snippet. I get an outofrangeexception when I execute the following code. How else can I access my RadGrid control on my page?
Following is a code snippet. I get an outofrangeexception when I execute the following code. How else can I access my RadGrid control on my page?
public
void Count()
{
int records = 0;
try
{
records = this.Pages.Access_Direct__CheckUp.div_ContentPlac_RgSearchResults.MasterTable.DataItemCount;
this.Log.WriteLine(records.ToString());
}
catch (Exception ex)
{
this.Log.WriteLine(ex.ToString()); ;
}
}