PD
Pete Davis
July 15, 2009 03:15 PM UTC
Finally figured it out.
I was trying to access the cells by doing something like this:
foreach (Control ctrl in tab.Controls)
{
if(ctrl is GridDataBoundGrid)
{
string myString = (GridDataBoundGrid)control.Model[1, 1].Text
}
}
This was not working though, as I technically was not able to access the subclasses of GridDataBoundGrid such as "Model".
The solution (or a solution) is to create a new instance of GridDataBoundGrid and assign it the value of the control. This will allow you to access the subclasses of the GridDataBoundGrid class. Example:
foreach (Control ctrl in tab.Controls)
{
if(ctrl is GridDataBoundGrid)
{
GridDataBoundGrid grid = (GridDataBoundGrid)control;
string myString = grid.Model[1, 1].Text;
}
}
P.S. Why does this forum not support tabbed white space?
TK
Thomas K
Syncfusion Team
July 21, 2009 05:32 AM UTC
Hi,
Currently, we do not have tabbed spacing support in textarea while posting forums. We will implement this feature in our future website releases.
We regret for any inconvenience caused.
Regards,
Thomas