Search Operations and Validations in Project C# Windows Forms Application

Опубликовано: 16 Июль 2026
на канале: Ashoksinh Zala Academy
380
12

Search operations are perform by employee id wise, employee name by using like operator and all employees. So take three RadioButton and By id and by name and All that RadioButton Text. Employee id take ComboBox and by name use the TextBox control. First code state the Dynamic connection and than comboBox fill by employee id for search operation and then user select any employee id in ComboBox SelectedIndexChanged event fire and search record in dataGiewView. and Employee name by same process by select character by character using like operator in TextChanged event. All RadioButton CheckedChanged event call the user define method datagird();
After completed search operator take validation. What is validation? Valid value for any fields that is called validation or restrict fields value that known as validation. There are two type of validation like 1. General validation and 2. Specific validation. In First General validation like in this video lecture cover the 1. Not blank any field like TextBox here is apply 2. Employee id must be in digit and 3. Employee name must be in Alphabets. and in second part means specific validation cover the Email ID must be @ and . symbol and second take example like Mobile number must be 10 digits using RegulareExpressions in using System.Text.RegularExpressions; SO you can apply this mobile example to your pincode, zip code , fax code and General validation in all form of your project. Like only digit you can apply in item id , product id, bill id, company id, customer id, purchase id, sales id...etc, and only Alphabets apply to you project like item name, product name, company name, customer name, purchase item name, sales item name...etc. So this video lecture very helpful to your project development.