C#检索存储的值,并从组合框显示为text属性

编程入门 行业动态 更新时间:2024-10-21 11:34:00
本文介绍了C#检索存储的值,并从组合框显示为text属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

应使用存储在一个表(表1)中的键值(整数)来设置组合表中第二个表(表2)中的数据(字符串)的text属性. table1值(int) ------------- 1 1 2 1 3 table2值(整数,字符串) ------------- 1,一个" 2,两个" 3,三个" 通过将字符串值绑定到组合框文本值,从table1检索的记录应在组合框文本属性中显示来自table2的字符串值. 前任.整数值2应该在组合框文本属性中显示字符串"Two". 希望您能提供帮助. Ivor

A key value (integer) stored in one table (table1) should be used to set the text property from a combobox build from data (string) in a second table (table2). table1 values (int) ------------- 1 1 2 1 3 table2 values (int, string) ------------- 1, "One" 2, "Two" 3, "Three" A record retrieved from table1 should display the string value from table2 in a combobox text property by binding the string value to the combobox text value. ex. the integer value 2 should display teh string "Two" in the combobox text property. Hope you can help. Ivor

推荐答案

这听起来像是作业,但我会帮忙的. This sounds like homework but I''ll help some. SELECT t1.ID, t2.Value FROM table1 t1 INNER JOIN table2 t2 ON t1.ID = t2.ID

更多推荐

C#检索存储的值,并从组合框显示为text属性

本文发布于:2023-10-27 03:17:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1532154.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:组合   并从   属性   text

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!