databind

  • Multiple Stored Procedures with same return type in LINQ

    Previously you may have achieved this functionality using datareader. Now that you are using LINQ, you may be wondering how to achieve the same with lists of strongly typed objects. Quite a few articles out there have reproduced DataReader functionality… Continue reading

  • C# ListBox Management Adding Removing Updating Databound Items ASP .Net

    The lambda one-liner indicated in the snippet below essentially nests at least two “for/foreach” loops. See my related article for full source. This code snippet is used to populate a drop down list of all factories containing unregistered robots where… Continue reading

  • Winforms Databinding

    Snippets below have been condensed from their original sources for brevity. See references for original articles. Dataset usage: Binding DataGridView: References: MSDN, “DataSet Class”, http://msdn.microsoft.com/en-us/library/system.data.dataset.aspx MSDN, “How to: Bind Data to the Windows Forms DataGridView Control”, http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx Continue reading

  • Bind Control to an Object in Windows Forms

    Simple solution for basic binding in Windows Forms app. This would NOT be recommended if you are using ASP .Net, Silverlight, WCF, RIA or any other services to retrieve the data as these project types have much better support for… Continue reading

  • Lambda Functions in .Net

    Lambda expressions in .Net are denoted by the ‘=>’ symbol. These powerful operators can be used to create sleek, optimized loops that perform much faster. The usage below condenses the equivalent of at least 20 lines of two loops. (Sorry… Continue reading