public 属性 用户控件中的 gridview 列以从主窗体获取值
public property of gridview column in usercontrol to get value from master form
我如何制作一个 public 属性 用户控件中的特定 gridview 列以从主窗体中获取值,
此列的类型是 'Integer'
一种简单的方法是制作数据网格 public。
另一种方法是在用户控件上制作 属性:
Public Property DataGridProp() As String
Get
Return DataGridView1.Property
End Get
Set(ByVal value As String)
DataGridView1.Property = value
End Set
End Property
我如何制作一个 public 属性 用户控件中的特定 gridview 列以从主窗体中获取值, 此列的类型是 'Integer'
一种简单的方法是制作数据网格 public。
另一种方法是在用户控件上制作 属性:
Public Property DataGridProp() As String
Get
Return DataGridView1.Property
End Get
Set(ByVal value As String)
DataGridView1.Property = value
End Set
End Property