您可以将属性网格绑定到数据源吗? [英] Can you bind Property Grid to a data source?

查看:42
本文介绍了您可以将属性网格绑定到数据源吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚接触 c# 我想知道是否可以将 sql 或访问数据表绑定到属性网格?我使用的是 Vs2010.

New to c# i was wondering if you can bind a sql or access data table to a property grid? I'm using Vs2010.

推荐答案

您是否仅限于使用 DataTable?或者您能否将其转换为通用列表,然后将属性网格控件绑定到该列表?

Are you restricted to using a DataTable? Or could you convert it to a generic list, then bind the Property Grid control to that?

  1. 转换数据表到通用列表

绑定到属性网格

这篇关于您可以将属性网格绑定到数据源吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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