How to create new property (cols,Rows) to DataGridView [modified]
-
Hi All ! I want create new property ( Rows , Cols) to DataGridView (->So I can choice and set Rows munber and cols munber from form design) Please tell me what I have todo ? Thanks All support. Hai
This will appear at the end of articles you submit to the Code Project
modified on Monday, July 28, 2008 1:19 AM
-
Hi All ! I want create new property ( Rows , Cols) to DataGridView (->So I can choice and set Rows munber and cols munber from form design) Please tell me what I have todo ? Thanks All support. Hai
This will appear at the end of articles you submit to the Code Project
modified on Monday, July 28, 2008 1:19 AM
Hello Hai, You will have to create a new UserControl inheriting your application from the DataGridView. Then you can define new Properties for the control. Inherited NameSpace will be System.Windows.Forms.DataGridView. Hope this helps. Regards, Allen
Allen Smith ComponentOne LLC www.componentone.com
-
Hello Hai, You will have to create a new UserControl inheriting your application from the DataGridView. Then you can define new Properties for the control. Inherited NameSpace will be System.Windows.Forms.DataGridView. Hope this helps. Regards, Allen
Allen Smith ComponentOne LLC www.componentone.com
Hi Allen Thanks you support I have create a new UserControl as you said ---------- Public Property Cols() As Integer Get Return Me._Cols End Get Set(ByVal value As Integer) Me._Cols = value Me.Invalidate() End Set End Property ------------------ on form design display property Cols, I don't know after that what I must todo Please help me ! :doh:
This will appear at the end of articles you submit to the Code Project
modified on Monday, July 28, 2008 3:42 AM