Rowupdating gridview newvalues empty

I confirmed this using Reflector: protected virtual void On Row Updating(Grid View Update Event Args e) { bool flag1 = base. Is Bound Using Data Source ID; Grid View Update Event Handler handler1 = (Grid View Update Event Handler) base.

To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.First, I load up some data: After that, I’m doing some work to make my Grid View look beautifull, adding all columns by hand.But for this demo, I’ll show you the simple version, that also doesn’t work 🙂Let’s bind the data to our Grid View and have it autogenerate our columns, as well as an edit button.Old Values is null on validation) is strange, and we need a simple running project, illustrating this glitch, for more detailed research. Thanks, Marion Hello Marion, After tearing apart my code, I have come to the conclusion that it has something to do with the fact that these columns are in Edit Item Templates. Since the example provided does not contain a key value to another table I am unable to make this change.If I look at other columns which are not in Edit Item Templates, both e. Before I rewrite the sample, is there something about Edit ITem Templates which would prevent the values from being populated?I have a Grid View control and use old style manual binding with a Data Source property and invoke the Data Bind() method.

312

Leave a Reply