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

[636 byte] By [MykhayloBlishch] at [2007-12-20]
# 1

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

MykhayloBlishch at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 2
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
ryoma at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 3

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

tkerns at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 4

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.

MykhayloBlishch at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...