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

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




Custome Row header class

 
Reply to this topicStart new topic

Custome Row header class, Custome Row header class for DataGridView

prashweenet
7 Dec, 2006 - 02:11 AM
Post #1

New D.I.C Head
*

Joined: 7 Dec, 2006
Posts: 1


My Contributions
Hi All
I'm looking for an example how to customize the default RowHeaderCell. I want to display icons instead of the '*', pencil and arrow symbols and add some extra functionality.

I think I have to derive from the DataGridViewRowHeaderCell class and override the paint method?

I started like this

Public Class CustomDataGridViewRowHeaderCell
Inherits DataGridViewRowHeaderCell
End Class


What I actually looking for is to set property in my custome class to set the image in the row header.so i can set the image when ever i want.
for example
datagridview1.row(0).headercell.image=image goes here


If anyone has an example please share the code

/Thanks in Advance
PRash


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 07:45PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month