C# Corner

Resources  
  • Using ListViews in C#Jan 18, 2001. As a Visual C++ user for 10 years I can say that Microsoft deserves praise for their new ListView class. The MFC ListView class was, well, unpleasant to use. C# makes life a bit easier with a richer property and method set for ListViews. Also, you can now, set the ListView to select an entire row in report mode, something that in Visual C++ you had to write a whole custom ListView control to do. Note also the nice grid lines.
  • Schedule Program Using C#Feb 22, 2001. The Scheduling program consists of three main classes. The Form, the DatabaseController used to read and write scheduled events into the database and RowData which corresponds to data extracted from a row in the database.
  • Similarities and difference with C# and Other LanguagesSep 24, 2001. You should know that many C/C++ developers have been asking this question: Is C# a new programming language or a new version of C/C++. My answer to both questions is that none of these definitions is true.
  • Using Interfaces in .NET RemotingNov 30, 2001. In this article, we will create a remote object that will return rows from a database table. For the sake of simplicity I have used the NorthWind database that is packed with the installation of the Microsoft SQL Server.
  • .NET Remoting: The Interface ApproachMar 26, 2002. In this article, we will create a remote object, and access this object using the Interface. The object returns rows from a database table.
  • Editable ListView in C#Jul 01, 2002. Based on the similar technique used my previous article, the Editable Listbox, we can edit columns and rows of a ListView control.
  • How to Display Data Vertically?May 08, 2003. This article explains how to display data vertically rather than typically horizontal rows.
  • Add Column Dynamically to DataGrid to Display CalculationMay 08, 2003. In this article we'll see how to create a DataGrid column which displays the calculation of more than one field in the database table. The calculation could be addition, multiplication or even filtering rows.
  • Formatting ASP.NET DataGrid's DataJun 17, 2003. This article shows you how to change the color of a DataGrid row and format of date.
  • Constructing a DataTable using C#Feb 17, 2004. The ADO.NET DataSet is a data construct that can contain several relational rowsets, the relations that link those rowsets, and the metadata for each rowset. The DataSet also tracks which fields have changed, their new values and their original values, and can store custom information in its Extended Properties collection. The DataSet can be exported to XML or created from an XML document, thus enabling increased interoperability between applications.
  • SQL Server Reporting ServicesFeb 25, 2004. SQL Server Reporting Services is a comprehensive, server-based platform for creating, managing, and delivering reports that contain data from relational and multidimensional data sources. This article explains the features that are supported by SQL Server.
  • Refactoring in Visual Studio 2005Jun 11, 2004. Refactoring allows developers to use the built-in feature of Visual Studio to rename and convert and change the signatures and definitions of a class members. In this article, I will show you how refactoring feature provided by Visual Studio 2005 can be a handy tool when you are reorganizing or optimizing your existing projects.
  • Validating Input Xml Data FilesJun 28, 2004. In this article we'll discus two strategies for validating input XML data files. The validation of an XML input file could occur at various instances of processing.
  • Handling Oracle Max Open Cursor Error when Fetching Multiple Rows in ADO.NETAug 18, 2004. When working with Microsoft technologies, MS SQL Server comes out as a natural choice for the database. While it is a fact that .NET Framework has extensive support for SQL server, when you work with other databases like Oracle the situation might turn out to be a little more tricky than it is with SQL Server.
  • Bulk Data Transactions using OpenXMLOct 13, 2004. OPENXML is a new function added to SQL Server 2000 that provides a rowset view over an XML document. Since a rowset is simply a set of rows that contain columns of data, OPENXML is the function that allows an XML document to be treated in the familiar relational database format. It allows for the passing of an XML document to a T-SQL stored procedure for updating the data.
  • Creating Reports in C# using Crystal Reports with Xml data DefinitionsMay 22, 2005. This article explains how to extract data into a Crystal Report created outside a C# project using xml data definitions and data sets.
  • Alternate Row Color in Crystal ReportJun 07, 2005. This article shows how to develop reports with alternating row colors.
  • OOPs Concepts and .NET Part 1: Classes, Objects, and StructuresJun 22, 2005. The following article kicks off a three-part article series that will present definitions and samples for different Object-Oriented Programming concepts and its implementation in .NET. The first part will examine the concepts of classes, objects, and structures. The second part will examine the concepts of inheritance, abstraction, and polymorphism. The third and last part will examine the concepts of interface, multiple interface inheritance, collections, and overloading.
  • OOPS Concepts and .NET Part 1: Classes, Objects, and Structures Jun 22, 2005. The following article kicks off a three-part article series that will present definitions and samples for different Object-Oriented Programming concepts and its implementation in .NET.
  • OOPS Concepts and .NET Part 2: Inheritance, Abstraction, & PolymorphismJun 22, 2005. The following article is the second of a three-part article series that presents definitions and samples for different Object-Oriented Programming (OOP) concepts and its implementation in .NET. The first part examined the concepts of classes, objects, and structures. This part examines the concepts of inheritance, abstraction, and polymorphism. The third and last part will examine the concepts of interface, multiple interface inheritance, collections, and overloading.
  • OOPS Concepts And .NET Part 2: Inheritance, Abstraction And PolymorphismJun 22, 2005. The following article is the second of a three-part article series that presents definitions and samples for different Object-Oriented Programming (OOP) concepts and its implementation in .NET
  • Building Stacks with C#Jun 23, 2005. The following article presents a general definition of the stack data structure and its most common functions. This article explores a sample stack implementation as a .NET class in C#, as well as some interesting usage scenarios.
  • Building Stacks with C#Jun 23, 2005. The following article presents a general definition of the stack data structure and its most common functions. This article explores a sample stack implementation as a .NET class in C#, as well as some interesting usage scenarios.
  • 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.
  • Multi Selection of DataGrid Rows without Ctrl ClickJul 31, 2005. This article shows how to select multiple rows in a DataGrid without using CRTL.
  • Presenting Child Data along with Parent Row in Data GridNov 10, 2005. This article explains how we can bind the parent and child data to a Data Grid with minimum code effort using the Repeater control.
  • Important Aspects about ComponentsJan 12, 2006. In this article, I wil discuss some properties and key definitions about component programming.
  • Using XML and XSLTJan 18, 2006. XML Stylesheet Transformation(XSLT) is defined as a language for converting XML documents to other document formats. This article shows how to perform the transformation using classes of .NET Framework.
  • Code Access Security using C# in VS.NET 2005Feb 17, 2006. This article will focus on the definition and configuration of the Code Access Security Policy.
  • DataReader And DataSetMar 20, 2006. ADO.NET is part of Microsoft.NET which comprises a set of tools and object model for accessing a data source. The objects definition appears under the System.Data namespace. It allows applications to store, manipulate and retrieve data. In this article I’m going to talk about the two different objects for accessing data sources in two common contexts of your application: the connected and disconnected environment.
  • Embedded Datagrids with Add, Edit and Delete funtionalityJun 02, 2006. This article features an embedded Datagrids with Add, Edit and Delete funtionality.
  • Copying Data from one DataTable to Another using ImportRowJul 09, 2006. I recently have been engaged in an assignment where I had to copy large chunks of data from one DataTable to another. This article talks about how DataTable.ImportRow method may be more effective than copying direct rows.
  • The .NET 2.0 Framework Provider PatternAug 11, 2006. The Provider Model Design Pattern was first introduced with the .NET 1.1 framework, specifically in the ASP.NET starter kits and was formalized in ASP.NET Whidbey as a membership management provider API (Application Program Interface). It's primary purpose is to separate the definition for an API from the implementation. This keeps the API flexible by enabling the core functionality to be flexible and easily changed.
  • Transfer DataGrid Row to Another Empty DataGridAug 14, 2006. This article is about how to transfer row of a dataGrid to another dataGrid.
  • Update and Delete Rows in a DataTableAug 24, 2006. This how do I shows how to update and delete rows when looping through a DataTable.
  • 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.
  • Building control derived from Windows Forms control in Visual Studio 2005: Part ISep 13, 2006. Reusability and component oriented development is one of the features of .NET development. This approach may be applied to any project. In this article I share how you can build your own Windows control derived from an Windows Forms control in Visual Studio 2005. The examples are written using C#.
  • Access Row of a file Random bases using C#Jan 01, 2007. In this aritical, we will look how to get a row of a file which contains multiple rows randomly.
  • How to Swap Two Rows of listview in Upward/Downward DirectionMar 29, 2007. This article describe how two data rows of a listview are changed.
  • Enhanced Oracle Explorer in C# and .NET Using Windows FormsApr 27, 2007. This application will allows to do multiple simple activities on oracle database like running select statements and getting selected procedure's definition simultaneously in a thread-based GUI.
  • Retrieving Middle Rows from a TableOct 16, 2007. This article helps in retrieving middle rows of a particular table irrespective of its columns and data types.
  • One or more rows contain values violating non-null, unique, or foreign-key constraints Mar 14, 2008. You may get this error when using a typed DataSet. This tip shows how to fix it.
  • Using OUTPUT Clause for Getting Deleting Information from Several Tables.Apr 01, 2008. In this article I will explain how you can use such a T-SQL (SQL Server 2005) feature as OUTPUT clause in order to get information about rows, which were affected, when deleting process is executed for several tables, “connected” by foreign keys. The examples are written using T-SQL and C#.
  • Working with WPF Table using XAML - Part IAug 12, 2008. In this article, I will use WPF table in XAML format. This one defines a flexible grid area that contains rows and columns. At the contrast of the Grid object witch is defined in the System.Windows.Controls, the table object is defined in the System.Windows.Documents namespace.
  • How to Define and Configure a Grid Control Within a WPF Aplication Using XAML: Part IAug 13, 2008. In this article, I will try to make a representation of the Grid object witch is directly derived from the Panel abstract class and we can say that is a flexible area that contains rows and columns, it plays a role of container in a given WPF window.
  • Site Definition in SharePointJan 08, 2009. This article will explain about Site Definition, why we do need custom site definition ?and how to create and deploy a custom site definition.
  • JSON FundamentalsFeb 02, 2009. A new data format which is built on JavaScript is called JavaScript Object Notation[JSON]. It is a lightweight data format based on JavaScript syntax. JSON definitions can be included within JavaScript files. This post speaks about basic syntax of JSON.
  • WCF Features in .NET Framework 4.0Feb 08, 2009. WCF providing a way to define service contracts and to configure endpoint definitions using the declarative XAML in .NET Framework 4.0.
  • Tip: How to Highlight Rows in a DataGrid Using a CheckBoxJun 25, 2009. This code snippet shows how to select or highlight selected rows in a DataGrid based on a CheckBox column similar to yahoo or hotmail emails.
  • Exploring Grid Panel in Silverlight 3 Using Blend 3Jul 29, 2009. In this article we will explore how can we add Rows and Columns in Silverlight 3 using Blend 3.
  • Rows.Count, Column.Count and IEnumerator using ADO.NET with C# and Database ServerJul 29, 2009. In this article I will explain you how to make a SQL database connection and show information in data grid. Count the number of rows and columns in the table and show the records in text boxes using IEnumerator interface.
  • Gridview paging and multiple row delete using checkboxAug 14, 2009. This article describes how to bind GridView using LINQ, dynamic paging and how to delete multiple rows using checkbox selection.
  • Row detail in DataGrid in Silverlight 3 ApplicationAug 16, 2009. This article shows how to display row detail in DataGrid in Silverlight 3 application.
  • Look at Code Definition Window in Visual Studio 2008Aug 21, 2009. This article explains about Code Definition Window and its features in Visual Studio 2008.
  • Swapping GridView rows Up and DownAug 22, 2009. In this article I am posting code about swapping GridView rows Up and Down using Data Tables.
  • Adding CheckBoxes in SharePoint GridView (SPGridView)Oct 29, 2009. In this article, I am going to show how to add a checkboxes in SPGRidVIew. I will iterate through the SPGridView to find out the selected rows.
  • DataRow in ADO.NETNov 01, 2009. In this article I will explain about Data Row in ADO.Net.
  • Working with XMLNov 17, 2009. This article begins with basic definitions of Hypertext Markup Language (HTML), XML, and other Web-related technologies.
  • XML NamespacesNov 18, 2009. In this article I will explain you about XML namespace, DTD and schemas and Extensible Hyper Text Markup Language.
  • DOM Overview Nov 20, 2009. In this article I will explain you about DOM.
  • Row Header in DataGrid in Silverlight 3Nov 24, 2009. DataGrid in Silverlight 3 has Row Header, but by default it is collapsed. We will see how it can be useful to a DataGrid display.
  • DataGrid Column Resize in Silverlight 3Dec 01, 2009. In this article, we will see how we can resize the DataGrid Column after row delete operation from the DataGrid.
  • Multi Select Delete in DataGrid in Silverlight 3Dec 01, 2009. In this article we will see how we can have a CheckBox Column. And with the help of CheckBox we can multiselect rows and perform delete operation.
  • Select all CheckBox in DataGrid and delete rows in Silverlight 3Dec 02, 2009. In this article we will see how we can select all rows of DataGrid and delete all selected.
  • Alternate Row Color in ListBox in WPFDec 06, 2009. In this article we will see how we can make the Alternate Rows of the ListBox Colorful in WPF.
  • Creating a table programmatically in ASP.NET Feb 04, 2010. In this article I will explain creating a table programmatically in ASP.NET.
  • Edit Row Details in Context Menu in DataGrid in WPFFeb 22, 2010. In this article we will see how to edit the selected row details in ContextMenu.
  • Seven quick points in Understanding SharePoint 2007 list definitionFeb 22, 2010. This article will give basic 7 theatrical points on SharePoint List definition.
  • Grouping in Datagrid in WPFMar 05, 2010. In this article we will see how to have Grouped rows in DataGrid in WPF.
  • Custom Functions for DatatableApr 01, 2010. Here is some custom function that can be useful while dealing with datatables.
  • Using Silverlight Grid ControlMay 03, 2010. The Grid control is the most flexible layout panel, and supports arranging controls in multi-row and multi-column layouts. It is conceptually similar to an HTML Table element.
  • Using Report Service and Server Business Intelligence DevelopmentMay 07, 2010. This article will show steps for using report service and Server Business Intelligence Development.
  • How to: Create multiple rows of controls in ASP.Net Jun 09, 2010. This articles illustrates how to create multiple rows of controls in an asp.net web page dynamically using C# code with the help of a Panel, table, Session and ViewState.
  • Custom Row and Header Height of Datagrid in WPFJun 25, 2010. In this article we will see how we can customize the row height and header height in datagrid in WPF.
  • How to get the Values of Selected Row from a Gridview using ASP.NETJun 25, 2010. In this Article you can learn how to get the values of selected row from a Gridview and display the values in textBoxes using C# code.
  • Delegate to Lambda ExpressionSep 08, 2010. This article will not give any theoretical definition of Delegate, Anonymous method and Lambda Expression.
  • Export DataSet to ExcelSep 15, 2010. Exporting to single sheet excel file is easier and it requires only few line of codes. Exporting to Multiple sheet is little bit complicated and it requires little bit of extra effort. Mostly we will go for third party controls or dlls to achieve that. Here is the simple way to export your dataset to multiple sheets in an Excel file.
  • How to: Change color of rows in GridView on mouseoverOct 27, 2010. In this article I will show you how to change color of row in GridView on mouseover.
  • GridView rows swapping in ASP.NETNov 17, 2010. In this article I am posting code about swapping GridView rows up and down using Data Tables.
  • Betterness rule while calling a method in C# 4.0Dec 03, 2010. In a case where a method is overloaded and along with that some of the parameters are optional for one or more definitions, then there is some confusion related to which version of the overloaded method is to be called.
  • Persisting Row Selection in Data Controls - .NET 4Dec 05, 2010. In .NET 4, we can maintain the row selection in data controls while paging or sorting. That’s a cool feature available in .NET 4. You will be amazed after enabling this property in your data controls.
  • SQLCLR vs. T-SQL - Performance ComparisonDec 09, 2010. Before comparing the performance of SQLCLR and TSQL, just have a quick at the definition of SQLCLR.
  • WPF DataGrid StyleJan 01, 2011. The DataGrid control provides a flexible way to display a collection of data in rows and columns. The DataGrid includes built-in column types and a template column for hosting custom content. The built-in row type includes a drop-down details section that you can use to display additional content below the cell values.
  • Me, Routed Event and My NieceJan 11, 2011. Until now we were acquainted with normal events which are the basics of Windows Forms Applications. WPF introduces a new concept called Routed Event. So here we will have a brief introduction for this new feature and a comparison between CLR Events and Routed Events. We will not start with a definition; instead we will go back to old methods of CLR event and try to achieve something funny but logically meaningful.
  • Creating List Using List Definition - Code behind approachJan 20, 2011. In this article you will learn how to create a list using list definition code behind approach.
  • How to change the background color of rows in a GridView in ASP.NET 3.5Jan 20, 2011. In this article we will learn how to change the background color of the rows in a GridView control based on its row data using RowDataBound event.
  • Single Click on GridView Row To Redirect and bind Row values in another PageJan 27, 2011. The code in this article can be used to select a GridRow by single click or double click. When user clicks on the GridRow, it will pickup the ROW ID & redirect to another aspx page and bind the values.
  • How to Generate Fields of Matrices Dynamically Windows Form C#Feb 06, 2011. When we have to work with arrays and matrices or any multidimensional array, the first thing what we need to do is take control of rows (columns).
  • How to get the value of a Hidden column in a GridView using C#Feb 27, 2011. This article explains how to retrieve the value of a cell in a hidden column when a user selects a row in a GridView with a hidden column.
  • Differences between site definition and site templatesMar 07, 2011. In this article I am describing the differences between site definition and site template. Many people have asked me in which situation should we go with site definition and in which should we go with site template. All these questions will be answered in this article.
  • Select Single Radio Button in Gridview in Asp.NetMar 16, 2011. In this article we will learn how to select only one row of a Gridview using RadioButtons whereas normally a RadioButton does not support selection of only one RadioButton within a row.
  • Editable GridView - All Columns in GridView are Editable Apr 07, 2011. I am submitting all process to step by step first fill then create bool function and go to assemble row editing & updating Event.
  • Change Rows Background color in GridView with selected Criteria Apr 07, 2011. In this article we change background color of the rows in a GridView with selected criteria on GridView1_RowDataBound event.
  • Some Cool and Usefull Tips and Tricks For GridViewApr 11, 2011. Here are some cool and usefull tips and tricks for GridView in ASP.NET.
  • Working with Rows and Columns in XAML in SilverlightApr 27, 2011. In this article, you will learn how to work with rows and columns in Silverlight.
  • Row Cell Editing in Jq Grid Using JqueryMay 13, 2011. In this article I will describe how to edit a particular row cell in a jq grid.
  • Row Sampling Transformation in SSISMay 18, 2011. This article talks about row sampling (selected and unselected output) transformation in SQL Server Integration Services.
  • Row Sampling (Un-Selected Output) Transformationin SSISMay 24, 2011. In this article we are going to see how to use a Row Sampling transformation in SSIS Packaging. This is part 65 of the series of articles on SSIS.
  • Row Sampling (Selected Output) Transformationin SSISMay 24, 2011. In this article we are going to see how to use a Row Sampling transformation in SSIS Packaging. This is part 64 of the series of articles on SSIS.
  • Convert Rows to Columns in SQL ServerMay 29, 2011. This article will help to convert values in rows to column/fields name or headers.

About Row-Definitions

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks