Rowupdating new

From the time you write code that depends on the immediate layout of your page then your asking for trouble.I often see people on the forums writing code like this: Find Control is a very powerful method on Control that allows you to search for a nested control, NOT synonymous to DOM function get Element By Id.Right now you must be asking yourself how can you get those dictionaries filled out just as if you were bound to a Datasource control?The good news is you CAN do it(this is what this blog post is all about right? This is probably one of the worst things you can do.Note: to distinguish records, the property Allow Focused Row should be enabled for grid.

It iterates over the control collection of the Grid View Row and calls Extract Values From Cell on each cell which puts values into the dictionary.

There is alot of magic going on behind the scenes (which I will blog about in a separate post), but you do not need to know how it works to use it, e.g expression then the value of the Text property is pushed into a dictionary which the data control can retrieve later.

So how does Grid View/Form View/Details View/List View get these values?

After you've created a layout with a data control of your choice and eventually bound them to some datasource, you almost always want to get that data back out of them(and why wouldn't you, its your data).

One thing you'll learn about developing webpages is that its like petting a porcupine (yikes).

Leave a Reply