Quote:
Originally Posted by Plater
I think in this case you would need to re-set it unfortunatly.
What I have done in the past, when dealing with windows apps at least, is to be like:
-
-
object o =mySomeThingWithADataSource.DataSource;
-
//for me this is usually a DataTable or some form of a table so I do:
-
int numrows = ( (DataTable) mySomeThingWithADataSource.DataSource).Rows.Count;
-
-
And then I do my workings on THAT object, as i generally let the program lose reference to the original object that I supplied to the DataSource
Yeah, I was afraid you were going to say that... maybe I'll plug some reflection into my control and see if I can grab a handle to the original and attach it somehow...
It would be nice if I could have it just bind to the master data source so I don't have to keep worrying about accessing the one contained in my control.
In Javascript you can supply an inline functions as parameters so that it'll do things like this... I'm curious if I can force a lambda expression in there in a similar fashion...