Datagrid in C# .NET

5 pts.
Tags:
.NET
C
DataGrid
When I entered into a cell and enter a text and I want another text to be entered in next line of the same cell...by pressing enter. How can I do that?
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Subhendu Sen
    Your query is not cleared here. What code have you written for this purpose. After defining datagrid, you have to set height of the rows/ from properties select autosizerowsmode. However more details are required.
    141,290 pointsBadges:
    report
  • ToddN2000
    I agree I am a little confused. Can you post the code you are using so we can get a better understanding?
    135,515 pointsBadges:
    report
  • carlosdl
    So, you want multi-line cells.

    Try setting the WrapMode of the DefaultCellStyle of the DataGridViewTextBoxColumn to true.

    If that doesn't work, post your code, so we can take a look at what you are doing.
    85,470 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: