如果我在datagridviewRow的第一个单元格中选择一个项目,如何自动填充数据库中的所有单元格 [英] how to fill automatically all cells from database if I select an item into first cell of datagridviewRow

查看:84
本文介绍了如果我在datagridviewRow的第一个单元格中选择一个项目,如何自动填充数据库中的所有单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,在我的项目中我有一个包含7列的datagridview,第一列是一种用sql数据库中的数据填充的组合框,所以我需要一个想法来填充所有其他单元格只需选择名称datagridview的组合框

Hello everyone, on my project I have a datagridview with 7 columns, the first column is a type of combobox that is filled with data from sql database, so I need an idea to fill all other cells just by selecting the name in that combobox of datagridview

推荐答案

首先更新明确的问题或程序,以了解您的要求。



根据combobox中的这个问题,必须包含关于组合框的channge事件的主要数据,你可以使用bombo select数据从数据库中找到数据abd填充其他字段
Hi as at first update clear question or program for understand your requirement.

as per this question in combobox must contain primary data on the channge event of combobox you can find the data from database using bombo select data abd fill the others fields


这篇关于如果我在datagridviewRow的第一个单元格中选择一个项目,如何自动填充数据库中的所有单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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