使用DataGridView控件进行输入和输入; C#Windows应用程序中的验证数据 [英] Use of DataGridView Control for Input & Validation Data in C# Windows Application

查看:65
本文介绍了使用DataGridView控件进行输入和输入; C#Windows应用程序中的验证数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#Windows应用程序中更新鲜.
我正在开发医疗交易软件.
我在其中开发销售账单模块.
在销售帐单中将有不止一种产品.
要在销售账单中添加/编辑/删除产品,我需要datagridview控件.

添加产品
在此,我想在datagridview控件底部的空白完整选定行上按ENTER键,以添加产品.

编辑/删除
同样按选定行的Enter键".

为此,我在DataGridView控件中添加了以下datagridviewtextbox列
1. ItemName
2.批号
3.数量.
4.评分
5.金额

我想在ItemName DataGridViewTextBox Column的TextChanged事件上以及当用户通过按Enter
从ListBox控件中选择特定项目时打开ListBox帮助 焦点应转到下一个BatchNo.专栏.

批号也相同,
上的验证
数量率列也.

我应该使用什么属性/事件.

帮帮我

非常感谢Advance

I am fresher in C# Windows Application.
I am developing a medical trading software.
In which I am developing Sales Billing Module.
In a sales bill there will be more than one product.
To Add/Edit/Delete products in Sales Bill I want datagridview control.

To Add Product
In this, I want to press a ENTER Key on a blank full selected row at bottom of datagridview control to ADD Products.

To Edit/Delete
Also on press of Enter Key of Selected Row.

For this I add following datagridviewtextbox Column in DataGridView Control
1. ItemName
2. Batch No.
3. Qty.
4. Rate
5. Amount

I want to open a ListBox Help on TextChanged Event of ItemName DataGridViewTextBox Column and when user select particular item from ListBox Control by pressing Enter
focus should go to next BatchNo. Column.

Same for Batch No. also and Validation on

Qty Rate Column also.

What will be properties/event should be used by me.

Help Me

Thanks a Lot in Advance

推荐答案

您看到的,回答时间太长.使用什么属性/事件?许多!列出它们可能对您没有帮助.您需要掌握技术.我将尝试首先设计和构建最简单的原型,只在需要使用的控件上使用MSDN文档(看起来您已经知道要使用哪些控件,只需要了解它们的成员和用法)和ADO.NET(您是否使用数据库?).

当您遇到特定问题时,您将能够提出更有用的问题;在这种情况下,请尝试生成简单的代码示例和全面的问题报告;我们很乐意为您提供帮助.

祝你好运,
—SA
You see, it requires too long answer. What properties/events to use? Many! And listing them might not help you. You need to get a grasp on techniques. I would try to design and build simplest possible prototype first, using just MSDN documentation on controls you need to use (it looks like you already know which controls to use, just need to learn their member and usage) and ADO.NET (do you use database?).

When you face particular problems, you will be able to ask more useful questions; in this case, try to produce a simplistic code sample and a comprehensive issue report; adn we would gladly help you.

Good luck,
—SA


这篇关于使用DataGridView控件进行输入和输入; C#Windows应用程序中的验证数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆