The Situation: You have a DevExpress ASPxGridView on your page with a column designated as "ReadOnly=true". This works great when you are editing an existing record -- it won't allow you to change that field, but when you try to insert a NEW record, you can't enter anything in the field. Note: I don't know … Continue reading How To Make a Column in an ASPxGridView ReadOnly for Editing but Enabled when Inserting a New Record
Entity Framework: Repository or Not Repository?
On the heels of the demise of the commercial version of EntitySpaces, I am delving into Microsoft's Entity Framework. I need to implement it in a big project to replace a much more manual Data Access Layer. So I've done a ton of reading on it (and played with it some, too), and the common … Continue reading Entity Framework: Repository or Not Repository?
How to Find the Index of an Object in a List
The Situation You are trying to find out if an object exists in a List object. A Solution Use Linq. The example below looks for a User object in a List<User> by searching for the UserName:
How to Pass Extra Parameters When Using AJAX Toolkit CascadingDropDowns with a Database
The Situation: You have set up your CascadingDropDowns as shown on the ASP.NET AJAX Control Toolkit documentation here, using a web service to retrieve and populate your dropdowns. However, in addition to the value of the first dropdown, you need to pass other parameters to the web service to be used in your query. A … Continue reading How to Pass Extra Parameters When Using AJAX Toolkit CascadingDropDowns with a Database
Should You Use 3rd-Party Controls and Frameworks? – Final Word?
I've done some more thinking about whether or not to use 3rd-party controls (see my original post, and this follow up) and I believe I have some "rules of thumb" that make sense now. My re-evaluation of my position on this has come because the EntitySpaces team announced that they would no longer continue the … Continue reading Should You Use 3rd-Party Controls and Frameworks? – Final Word?