DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Inheriting DataGridViewTextBoxColumn

  1. #1
    Join Date
    Jul 2008

    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 06:15 AM.

  2. #2
    Join Date
    Nov 2008
    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

  1. Inheriting from STL containers
    By PeterS2 in forum C++
    Replies: 7
    Last Post: 08-03-2007, 08:54 AM
  2. inheriting .vb files
    By partyk1d24 in forum ASP.NET
    Replies: 1
    Last Post: 04-04-2006, 05:47 PM
  3. Interfaces Inheriting from Interfaces
    By Larry Hunter in forum .NET
    Replies: 1
    Last Post: 01-27-2003, 12:45 AM
  4. How To Inheriting From A C++ Class?
    By Michael Pyles in forum .NET
    Replies: 2
    Last Post: 01-04-2002, 10:26 AM
  5. Inheriting a control
    By Willy Van den Driessche in forum .NET
    Replies: 10
    Last Post: 11-15-2001, 12:53 PM

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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center