Hi friends, In this tutorial, we are going to see how to Bind DataGridView in C# Windows Application. You can use a DataGridView control to display data with or without an underlying data source. Without specifying a data source, you can create columns and rows that contain data and add them directly to the DataGridView using…
C# Program to read text File line by line
Here I am going to write a simple program to read a text file line by line. We will use the ReadLine method of the StreamReader class. C# Program to read text file line by line: This program reads the content of the text file into a string variable using the ReadLine method of StreamReader…
Delegate in C#
Hello Friends, In this tutorial we are going to learn Delegate in C#. A delegate is similar to a pointer in C++. Let’s discuss it in detail with the example. After Completing this tutorial you will be able to understand: What is Delegate in C#? Types of Delegate in C#? Advantages of Delegate? What is…
C# Program to find all substrings from a String
Hello everyone, Here I am going to write a Program to find all substrings from a String. This example code iterate through all possible lengths of a substring. C# Program to find all substrings from a String Here is the source code to find all substrings from a String. using System; using System.Collections.Generic; using System.Linq; using System.Text;…
Anonymous method in C#
In this tutorial, we are going to learn Anonymous method in C#. Anonymous methods are methods that have the only body without method name. Let’s discuss Anonymous method with the example. After Completing this tutorial you will be able to understand: What is Anonymous Method in C# How to use Anonymous Method in C#. Introduction:…