-
Inheriting DataGridViewTextBoxColumn
I have a specialized column I want to create for a datagridview that is very similar to a textboxcolumn. It will display text however, I simply want to perform a small operation on the text when it loads into the datagrid. I have created a column and cell class inheriting from datagridviewtextbox column and cell. Now I simply want to run the text being displayed in the cell through a function before displaying. Any ideas?
I have managed to get the text to display with the required changes, only one problem. The changes I make to the text results in less text, about half actually. When the text displays the cell size is still big enough to accommodate the original text.
Last edited by macowl; 12-03-2008 at 05:15 AM.
-
Is this something that really requires a custom DGV Column?...or can you just use the events provided in the DGV to call the function that formats the text?
Similar Threads
-
Replies: 7
Last Post: 08-03-2007, 08:54 AM
-
By partyk1d24 in forum ASP.NET
Replies: 1
Last Post: 04-04-2006, 05:47 PM
-
By Larry Hunter in forum .NET
Replies: 1
Last Post: 01-26-2003, 11:45 PM
-
By Michael Pyles in forum .NET
Replies: 2
Last Post: 01-04-2002, 09:26 AM
-
By Willy Van den Driessche in forum .NET
Replies: 10
Last Post: 11-15-2001, 11:53 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks