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
Printable View
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
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?
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).
Hello,
I know so, but i need a way to show all the data without the need to enlage the text field.
thx
Hiba
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...).