Datagridview cell customization problem

Hello All.

I have one problem with customizing datagridview cells content.

Supppose we have table with 3 fields: From, Subject, Date.

I want to display these 3 db fields in one custom cell (I want to make it like in MS Outlook's "Inbox" where we have it formatted: "Subject" with big font, "From" and "Date" with smaller font). Also I'd like to use databinding to achieve these results.

Is it possible (I looked at customized cells and columns but I did not find an example where 2 and more fields were incorporated into one cell)

Thanks in advance




Answer this question

Datagridview cell customization problem

  • Crayon Wang

    Hello Mykhaylo,
    Which sample exactly are you talking about I have a similar problem that you described and is interested in taking a look at this sample that you talked about.
    Regards,
    -Takashi

  • Greg Enslow

    Hello Tony and Takashi!

    Tony was right - I mentioned Outlook 2003 Look and Feel sample.

    So actually there the only thing you need to do is to write your handler for datagrid cell Paint event + handle some additional events as in example.



  • LuisFco

    I believe that the sample he mentions can be found here:

    http://www.windowsforms.com/Default.aspx tabindex=4&tabid=49#User%20Interface

    It's the one called Outlook 2003 Look and Feel.

    Tony


  • Julie MacAller

    Hello all.

    I've found the sample how top solve this problem in Microsoft WinForms samples - see Outlook (OLAF) clone sample. Required functionality is presented there.

    Best regards



  • Datagridview cell customization problem