|
Hi I simply want to know how to create a linklabel in column of a mysql datagrid. I have already created a timer controlled datagrid which refreshes it every 3 seconds I have been reading articles on this but dont understand the procedure to tackling this hurdle
To create a column style, First I need to subclass the abstract DataGridColumnStyle class, how do I do that?
next have to implement the following methods
Protected Overrides Sub Abort(ByVal rowNum As Integer)
Protected Overrides Function Commit (ByVal datasource As _ CurrencyManager, ByVal rowNum As Integer) As Boolean
Protected Overloads Overrides Sub Edit(ByVal source As _ System.Windows.Forms.CurrencyManager, ByVal rowNum As Integer, ByVal bounds _ As System.Drawing.Rectangle, ByVal [readOnly] As Boolean, _ ByVal instantText As String)
Protected Overrides Function GetMinimumHeight() As Integer
Protected Overrides Function GetPreferredHeight(ByVal g _ As Graphics, ByVal value As Object) As Integer
Protected Overrides Function GetPreferredSize(ByVal g _ As Graphics, ByVal value As Object) As System.Drawing.Size
Protected Overloads Overrides Sub Paint(ByVal g As _ System.Drawing.Graphics, ByVal bounds As System.Drawing.Rectangle, _ ByVal source As System.Windows.Forms.CurrencyManager, _ ByVal rowNum As Integer)
Protected Overloads Overrides Sub Paint (ByVal g As Graphics, _ ByVal bounds As Rectangle, ByVal source As CurrencyManager, _ ByVal rowNum As Integer, ByVal backBrush As Brush, _ ByVal foreBrush As Brush, ByVal alignToRight As Boolean) [i]
How do I do the above?
I'd really appreciate any help. thanks
This post has been edited by don_omar: 13 May, 2008 - 12:07 AM
|