C# Corner

Resources  
  • A GridView Component in C#Apr 05, 2000. This example shows you how I've wrapped a ListView in a UserControl and turned it into a simple grid control.
  • Basic Database Operations in ADO.NETAug 08, 2001. This Article will show the basic database transactions select, insert update and delete.
  • Basic Database operations using ADO.NETAug 21, 2001. I found very interesting database features incorporated into the .NET as ADO.NET.
  • Playing with StringsSep 18, 2001. This program explores the String class and its various methods. With this you will be able to initialize strings using different constructors and use them. To see how the methods of the 'String' class work, see the following code.
  • Calculator in C#Sep 19, 2001. Attached program performs basic calculator operations.
  • Accessing Oracle DatabaseSep 21, 2001. This source code shows you how to connect to an oracle database and do operations such as select, insert, update and delete.
  • BitWise Operations in C#Nov 01, 2001. C# has lots of flexibility over manipulating with bits. Before I start explaining about bit wise manipulation I would like to give some inputs on binary operations.
  • Boxing and Performance of CollectionsMar 14, 2002. In this article, I will compare some performance issues of values and references types during boxing and unboxing operations.
  • An Editable GridView Control in C# and .NET - Part 1May 28, 2002. I've gotten a lot of e-mail about my GridView control Article, so I've decided to write a follow up article on a more powerful control that allows you to edit the cells within the control and change the colors of the cells.
  • An Editable GridView Control in C# and .NET - Part IIJun 19, 2002. In this article we will take advantage of the XML classes available to us to persist the GridView control that we talked about in our first article in this series. The two classes we utilize in our code are XmlTextWriter and XmlTextReader.
  • An Editable GridView Control in C# and .NET - Part II Persisting in XMLJun 19, 2002. In this article we will take advantage of the XML classes available to us to persist the GridView control that we talked about in our first article in this series. The two classes we utilize in our code are XmlTextWriter and XmlTextReader.
  • Editable GridView Control in C# and .NET - Part-III Printing the GridViewJun 24, 2002. In our last two articles, we talked about how to create an editable GridView and how to make it persistent in XML.
  • Editable GridView Control in C# and .NET - Part IV Exporting the GridView to ExcelJun 27, 2002. In this article we will take the contents of our GridView control and spill it into an Excel spreadsheet using this wrapper mechanism.
  • Imlememnting Drag and Drop in ListView ControlsJul 08, 2002. Drag and Drop operations in Windows can be achieved using 3 simple events - DragEnter, DragLeave, and DragDrop.
  • Step by Step Guide to Create a Setup for a Web ApplicationAug 15, 2002. Deployment of an application is big issue in application software development.
  • StringBuilder and String ConcatenationOct 01, 2002. String concatenation is one of the commonly used operations among programmers.
  • MDX Query BuliderNov 11, 2002. In this article we will be developing a MDX Query Builder.This is similar to the MDX sample application operations, which carry out the transfer of blocks from the secondary memory to the main memory and vice versa.
  • Working with Win32 API in .NETNov 21, 2002. Windows exposes lots of functionality in the form of Win32 API. Using these API you can perform direct operation in windows, which increases performance of your application.
  • Synchronized Threading in .NETDec 11, 2002. Threads are a powerful abstraction for allowing parallelized operations: graphical updates can happen while another thread is performing computations, two threads can handle two simultaneous network requests from a single process, and the list goes on. Since threads are pretty simple to understand, conceptually, but, practically, they are a cause for programmatic headaches, I decided to write this program to describe how to make use of threads.
  • Concurrency Control in ADO.NET using Threads and MonitorsDec 31, 2002. The concurrency controls system refers to the lowest level in architecture of a DBMS. It is relative to the input/output operations, which carry out the transfer of blocks from the secondary memory to the main memory and vice versa.
  • Hash Password GeneratorFeb 10, 2003. This visual tool generates the hashed password using either SHA1 or MD5 hashing algorithm depending on the choice you make. It will display the hashed password in the read only text box, it can also copy the hashed password to clipboard on your choice for easy paste operation.
  • Lengthy Operations on Single Thread in .NET ApplicationsJul 08, 2003. In this article I discuss how the lenghty operations can be handled in a .NET application. I also discuss how the stack trace can be examined to find any specific methods.
  • Real Life SQL and .NET: Part VJan 13, 2004. Welcome to the world of SQL and the huge, growing database technologies of today’s business all over the SQL world. By reading this article, we have begun accepting the knowledge that will soon be required for survival in today’s world of relational database and data management. Alas, for the reason that it is first necessary to provide a background of SQL and cover some preliminary concepts that we need to know, the majority of this article is text in paragraph format.
  • Color Transformations and the Color MatrixApr 10, 2004. This article discusses the color transformations and how to apply Color Matrix on image colors to provide various effects such as gray scale effects, reduce or increase the contrast, brightness, or redness of an image.
  • Resizable Calculator using C#Apr 22, 2004. This application is a scientific calculator, which is resizable and performs some basic operations like addition, subtraction, multiplication, division and some trigonometric functions.
  • Grid View Control V - Sizing and Tabbing in the GridViewMay 05, 2004. This article is in response to forums question how do I resize and use tabbing in GridView control.
  • Insert Master-Detail Data using Transact-SQLJun 24, 2005. Microsoft SQL Server 2000 SQLXML allows among other things to manage batch operations in a database, which reduces significantly the need of more than one round-trip to a database. OpenXML is a Transact-SQL statement that allows to represent data in XML format and can be used to insert, update, and delete more than one row (represented by an element) in a table or group of tables.
  • Microsoft patterns & practices: The Enterprise LibraryJul 12, 2005. Microsoft patterns & practices provide scenario-specific recommendations illustrating how to design, develop, deploy, and operate architecturally sound applications for the Microsoft .NET platform.The following article covers details on the Data Access Application Block.
  • Enterprise Library Caching Application BlockJul 12, 2005. Microsoft patterns & practices provide scenario-specific recommendations illustrating how to design, develop, deploy, and operate architecturally sound applications for the Microsoft .NET platform. The following article covers details on the Caching Application Block.
  • M.S. Visio AutomationAug 19, 2005. This article demonstrates the flexibility of Visio products as a development platform by describing the customized business solutions.
  • Top 10 New Features in ADO.NET 2.0Aug 19, 2005. This article summarizes the new and updated features of ADO.NET 2.0, which ships with .NET Framework 2.0. In my following articles I will discuss these features in more details with sample examples.
  • Introducing ASP.NET 2.0Jun 14, 2006. In this article, the author examines the fundamentals of ASP.NET 2.0 with the help of code snippets.
  • C# Artificial Intelligence (AI) Programming: A Basic Object Oriented (OOP) Framework for Neural NetworksJun 20, 2006. A Neural Network is an Artificial Intelligence (AI) methodology that attempts to mimic the behavior of the neurons in our brains. In this article, we’ll be building a basic framework for AI Neural Networks in C# and teach our program to perform basic X-OR operations.
  • Using LINQ in Visual Studio 2005Jul 03, 2006. LINQ (.Net Language Integrated Query) is the general-purpose standard query operators that allow traversal, filter and projection operations to be expressed in a direct yet declarative way in any .Net programming language.
  • Inserting new row in GridView in ASP.NET 2.0Sep 04, 2006. The GridView was not designed to insert new rows, but there is a way to accomplish this with very little code. This article shows how to do that.
  • Atlas - Visual Feedback Using the UpdateProgress ControlSep 07, 2006. In this article, we will take a look at the ease with which the UpdateProgress control in Atlas allows you to provide user feedback on the progress of operations in an ASP.Net 2.0 web page.
  • Bulk Copy Operations in ADO.NET 2.0Oct 23, 2006. Bulk copying of data from one data source to another data source is a new feature added to ADO.NET 2.0. Bulk copy classes provides the fastest way to transfer set of data from once source to the other.
  • ASP.Net 2.0: Export GridView to Excel Nov 06, 2006. This article describes how to Export an ASP.Net 2.0 GridView to Excel.
  • A guide to ObjectDataSource controlNov 17, 2006. One of the best new features of the forthcoming ASP.NET 2.0 will be the ObjectDataSource control. However, as I found out in my experimentation what seems like a simple control has some complex behaviours to master to get it working properly. If (like me) you have an existing data access layer you may have to make changes to be able to use ObjectDataSource.
  • Stacked ClipboardDec 28, 2006. This article explains about simple clipboard operation and an extended clipboard functionality.
  • File Splitter in .NETJan 16, 2007. This articles shows how to create a file splitter application in .Net using simple file operations.
  • Creating a Context Menu on a DataGridView Mouse Click Jan 17, 2007. This article describes how to create a context menu when you mouse click on a DataGridView control in Windows Forms.
  • Using a Web User Control inside the GridView controlFeb 21, 2007. In this article I will share how a Web User Control can be used in the GridView control. The examples are written using C# .
  • Cannot perform '>' operation on System.DateTime and System.DoubleFeb 22, 2007. I get error "Cannot perform '>' operation on System.DateTime and System.Double" when applying a filter on DataView.
  • ASP.Net 2.0 AJAX Extension 1.0 ApplicationMar 21, 2007. This article will explain you in dept of creating AspNet Ajax-Enabled Application I have explained with the help of product management example, where you can add new product, edit, update & cancel the product related activity.
  • ASP.Net 2.0: Export GridView to Excel - Part IIApr 04, 2007. In this version of the article, we will include the handling the Hyperlink columns in the GridView export to Excel and also re-factor our original logic to use more general features of Reflection.
  • Multi-threaded Asynchronous Programming in C#... Event-Driven Architecture. Part IV.May 14, 2007. This is a continuation of a set of articles on Asynchronous multi-threaded development using C#. In this article we'll cover the basics of building an event-driven architecture which will be a basis for most multi-threaded apps. Also we'll cover async read/write operations on a file.
  • Windows Communication Foundation callbackJun 12, 2007. This article is intended to illustrate how to implement callback operations in WCF through a common business scenario where the service needs to notify that some events has happened to the client. During a callback, in many aspects the tables are turned: the service becomes the client, and the client becomes the server.
  • Using the BackgroundWorker Component in .NET 2 ApplicationsJul 03, 2007. In this article I will show (step-by-step) how you can use the BackgroundWorker Component in .NET 2 applications to execute time-consuming operations.
  • Multi-threaded Asynchronous Programming in C#... Through The Web Page. Part VIJul 27, 2007. Async web pages which are primarily used as a server performance enhancement. There are two main methods we will be looking at that are used to execute operations asynchronously from web pages: Page.AddOnPreRenderCompleteAsync() and Page.AddOnPreRenderCompleteAsync().
  • Distributed Transaction Coordinator/Control in asp.net (DTC)Jul 31, 2007. A transaction is a series of work perform as a single unit of work consistency and reliability of the system, can be achieved by binding a set of related operations together in a transaction. Here I will be discussing how we can run distributed application in a application.
  • Edit, Delete and Update in a DataGrid in Visual Web developer 2005Sep 26, 2007. Here in this article I am going to show, how to edit, Delete and update data in a DataGrid.
  • Using the BackgroundWorker Component with Composite User ControlsSep 28, 2007. In this article you will learn how to use the BackgroundWorker Component with user controls in C#.
  • Selecting multiple Checkboxes inside multiple GridViewsOct 04, 2007. Ths article describes how to check/ uncheck multiple Checkboxes inside two or more GridViews on same page with Masterpage and usercontrols.
  • Create your music player in c# using gridview with simple logicDec 05, 2007. This article gives you an idea how to create your own mp3 player in asp.net 2.0.
  • Query Optimization in SQL Server 2005Dec 19, 2007. This article offers suggestions on how to optimize query performance in SQL Server 2005.
  • Lengthy Operation Windows Form PatternsJan 03, 2008. This article gives a description to lengthy operation pattern on windows forms.
  • Database Connectivity using WebServiceJan 17, 2008. This article shows how to use Web Service and how to get data from database using Web Service.
  • Selecting Checkboxes inside the GridView ControlFeb 27, 2008. This article explains about how to select checkboxes inside the GridView control using javascript.
  • High Performance Abstraction Layer for Non-Blocking Asynchronous Thread Safe SqlServer CallsApr 25, 2008. One of the things I find myself doing frequently is writing (and re-writing) plumbing code to execute database CRUD operations. I wrote an abstraction layer over asynchronous SqlServer calls that allows developers to correctly make async calls agains SqlServer without having to deal with any of the complex plumbing normally required. All source code is included with this article.
  • Client Side Validation of GridView control with javascriptMay 21, 2008. This article shows how to use client side validations in GridView control with JavaScript.
  • The Concept of Shopping Cart in ASP.NET with C#Jul 16, 2008. This article will just give you the brief idea how to make simple shopping cart with dropdown GridView and data table.
  • Silverlight 2 use ADO.NET Data Services to access dataJul 19, 2008. In this article will show how to perform CRUD (Create, Retrieve, Update, Delete) operations in Silverlight 2 using ADO.NET Data Services.
  • Insert, Update and Delete in Silverlight DataGrid using ADO.NETJul 22, 2008. In this article will show how to perform CRUD (Create, Retrieve, Update, Delete) operations in Silverlight 2 using ADO.NET Data Services.
  • GridView with DataPager in ASP.NET 3.5Aug 01, 2008. To page through data in a control that implements the IPageableItemContainer interface, DataPager control can be used. GridView has its own paging and does not implement IPageableItemContainer interface.
  • GridView Examples for ASP.NET 2.0Sep 15, 2008. In this article, I am going to show how you can display and edit data in an ASP.NET 2.0 GridView control without writing a single line of code.
  • Using Filter Expressions with an SQL Data Source in ASP.NET C#Oct 07, 2008. This article describes the use of filter expressions in junction with an SQL Data Source.
  • Select, Add, Update, and Delete Data in a ASP.NET GridView ControlNov 23, 2008. This articles describes you how to view, add, update, and delete data using an ASP.NET 2.0 GridView Control in SQL Server database and C#.
  • ASP.NET ObjectDataSource Control OverviewDec 04, 2008. This post explains how to represent business objects with the ObjectDatasource control. It allows you to bind DataBound controls such as GridView, DetailsView and FormView. It also enables you to separate your business logic and data access logic from presentation layer.
  • Demonstration of ListView Contents in WPFJan 14, 2009. This article shows how to create a ListView control that uses a GridView view mode to display the contents.
  • Customizing GridView Control For Data ModificationsJan 28, 2009. This article is intended to illustrate how to customize GridView controls for data modification.
  • Simple & Complete GridView Functionality in .Net 2.0Feb 18, 2009. This article provides a single GridView which is capable of Displaying Data from database, Updateing it if required, Deleting the existing records from database based on a Confirmation Message and Inserting a new record(which is beyond the implicit usage of GridView).
  • Dealing with controls within a multi threaded contextMar 19, 2009. In this article I will provide a technique of how to avoid invalid cross threaded operation and I have taken an example of dealing with controls within a multithreaded context to demonsrate how to avoid such trouble
  • GridView Paging and Sorting using AjaxMar 27, 2009. In this article i am going to demonstrat how to enable browser back button. You will also learn gridview control and how to use paging, sorting using AJAX.
  • Customizing codeplex frozen header gridviewApr 13, 2009. This article depicts the customization of codeplex frozen header gridview to retain its scroll position across postbacks.
  • Data-binding in ASP.NET 2.0 using GridView controlApr 22, 2009. In this article, I will cove the principles and techniques of data binding with ASP.NET 2.0 and SQL Server 2005.
  • Customizing GridView control for data modificationsApr 29, 2009. This article is intended to illustrate how to customize GridView controls for data modification.
  • Validation Controls within GridView control in ASP.NET 2.0May 05, 2009. This article is intended to show how to add customized validation features to GridView control in order to avoid mistakes when the users enter data and violates the underlying business rules.
  • Calender Control in an ASP.NET 2.0 GridView ControlMay 08, 2009. The code attached in this article shows how to integrate a Calender control in the GridView control using ASP.NET 2.0.
  • The permissions granted to user are insufficient for performing this operation. (rsAccessDenied)May 12, 2009. You are unable to access the reporting site for our TFS project. You are able to view individual reports from VS, but you cannot get to the reporting site to edit them. Whenever you try to go to it (By right clicking on Reports->Show Report Site in Team Explorer), you get the SQL Server Reporting Services Error.
  • Cell Merging In GridViewMay 19, 2009. In many asp.net applications, we use the GridView control for displaying data. It is a very helpful control and powerful indeed. Many operations can be done using the grid view control but the UI presentation is more important as it is the look-n-feel that matters a lot. In this small article, I will demonstrate how the cells of the grid can be merged as I have been asked to do the same in one of my recent projects.
  • CRUD Operation on Associated table in ADO.NET Data Service May 27, 2009. This article will explain , how to perform data base operations on associated table in ADO.NET Data Service
  • HTTP Post from SilverLight application to a REST ServiceMay 31, 2009. This Article will expalin , how to create REST service which work on JSON data format. Then It will explain about how to perform HTTP GET and HTTP POST operation from a SilverLight client on a REST service on JSON Data Format.
  • Stream operation in WCFJun 01, 2009. WCF provides the support for Stream object. It typically recommends the developer to handle the message which size is too large as Stream object for the sake of high performance. However, there are some constraints on Stream operation to note.
  • CRUD Operation in ASP.Net MVC FrameworkJun 10, 2009. This article will explain how to perfrom CRUD operation in ASP.Net MVC application.
  • 7 Simple Steps to Connect SQL Server Using WCF from SilverLightJun 22, 2009. In this article we will look how we can do database operations using SilverLight. We will first try to understand why we cannot call ADO.NET directly from a silverlight application and then we will browse through 7 steps which we need to follow to do database operation from silverlight.
  • Operation Overloading in WCFJun 28, 2009. This article will explain, What is Service Contract?,How to achieve Operation overloading in Service.,How to achieve operation overloading at client side.,It explained the entire concept with supporting code as well. ,This will explain in detail of all the aspect of method overloading and manually configuration at client side.
  • GridView FormattingJul 06, 2009. In this article we will discuss about some of GridView formats.
  • Populating DataView from DataReaderJul 08, 2009. This article will illustrate how to populate DataView from DataReader in C#. In many scenarios we may have the data in DataReader which is required to be bind to GridView or some other control. In this scenario we can populate a DataView from DataReader and then provide the populated DataView to our Control.
  • GridView Multicolumn sortingJul 09, 2009. GridView's built-in sorting can be enabled by setting a data source and AllowSorting property to true. Click on column header to sort based on the SortExpression specified in the Gridview column. However, Gridview does not support multi column sorting which is required in day to day application. So here is how I tried to create one:
  • CRUD operations using LINQ EntitiesJul 12, 2009. This is a pretty simple tutorial dedicated to LINQ newbie’s who want to learn how to do CRUD operations using LINQ entities. I am sure many experienced LINQ players would criticize me for such a mild article.
  • Using WCF with ADO.Net Entity Model to Expose CRUD Operation as a SOAP Enabled ServiceJul 19, 2009. I have seen on web many people talking about, how to deal with DTO classes and business class in WCF. And those entire topics persuaded me to write this article.
  • Openxml - XML Integration with SQL ServerJul 20, 2009. In this article we will know about Openxml and how to perform operation using it.
  • Exposing CRUD Operations as RESful WCF Service and Peforming all HTTP Operation at Client Side.Jul 22, 2009. This article will explain step by step, how to perform CRUD operation on a database using ADO.Net Data Service and then how to expose CRUD operations as REST enabled WCF service to the client. This will also give explanation, how to consume REST service at client side. This article will perform the entire HTTP verb on the service at the client Side.
  • The C# Asynchronous Programming ModelJul 27, 2009. This article will start by examining how to use the Asynchronous Programming Model (APM) to perform an asynchronous compute-bound operation, then describe the three styles of programming with the APM to deal with handling the end of the call in an asynchronous call: wait-until done, polling, and callback. The natural following is then the Thread Pool.
  • Optional Argument in C# 4.0Jul 29, 2009. This article will give a very basic introduction of Optional Argument in C#4.0. This article will explain how Operation overloading and Optional Argument is different with samples. This article will give different syntax with Named parameter to work with Optional arguments.
  • Select, Update, and Delete Data in a ASP.NET GridView Control.Aug 06, 2009. This articles describes you how to view, update, and delete data using an ASP.NET 2.0 GridView Control in SQL Server database and C#.
  • Example of DataGrid in ASP.NETAug 11, 2009. The basic operations of DataGrid Like Edit, delete, Update, Insert record and show the data at the same page.
  • Export Grid to ExcelAug 13, 2009. In this article we are going to read and understand how in a web application we can export a grid data in the excel file.

About Gridview-Operation

NA

SPONSORED BY

C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.
Download Free eBooks