Results 1 to 5 of 5

Thread: DataGridView

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    165

    DataGridView

    Hello,

    How can I show a memo field in a datagridview? meaning that I need to show all the data in the memo field.

    Thank you
    Hiba

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: DataGridView

    Isnt a memo field just the same as a text field but with a larger character limit? If so then just the default textbox type of cell in a DataGridView will be able to display it. Have you actually tried to display it at all yet?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: DataGridView

    I don't think it's a good idea to display a Memo field in DatagridView. It would be better if you display a button or something in the Memo field column which when clicked should display the actual Memo field data at a different place (could be a new form or anything, it's up to you).

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    165

    Re: DataGridView

    Hello,
    I know so, but i need a way to show all the data without the need to enlage the text field.

    thx
    Hiba

  5. #5
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: DataGridView

    Well then either do what Deepak said and have a button in your cell or set the column to automatically expand to fit all data in it (but then it could get incredibly wide if its a long string...).
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width