Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,089 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,798 people online right now. Registration is fast and FREE... Join Now!




How do I Create a Linklabel in a mySql Datadgrid

 
Reply to this topicStart new topic

How do I Create a Linklabel in a mySql Datadgrid, Linklabel in datagrid

don_omar
12 May, 2008 - 06:41 AM
Post #1

New D.I.C Head
*

Joined: 27 Mar, 2008
Posts: 4

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
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 12:01AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month