Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 DatagridViewComboBoxColumn 绑定到数据源,我想在列表中显示“名字”+“姓氏”并显示成员。我怎么做?
向公开“名称”的数据源添加一个属性。让“Name”属性返回“FirstName”+“LastName”。
而是绑定到该属性。
如果数据源是 SQL,请使用 SELECT FirstName + LastName AS 'Name' FROM table