Log in

View Full Version : Images in the .NET CF DataGrid control


Jimmy Dodd
03-13-2003, 09:47 PM
Is there a way to display images in a column of the .NET CF DataGrid control?

If not, is there anyway to display a multi-column list of items of mixed types (including images) short of writing a custom control?

Peter Foot
03-14-2003, 07:17 PM
Is there a way to display images in a column of the .NET CF DataGrid control?

If not, is there anyway to display a multi-column list of items of mixed types (including images) short of writing a custom control?

The CF Datagrid supports only text and there appears no way to add custom column handlers as you can do with the desktop version.

You might want to consider the ListView as you can use icons with this, but you will probably need to look at writing your own custom control for proper images.

Peter

Jimmy Dodd
03-17-2003, 05:03 PM
Thanks Peter,

That's pretty much what I thought, though I couldn't find any docs to confirm it. I did some work with custom controls this weekend to see how much work would be involved since my last experience writing controls was with ActiveX on the desktop. I was amazed at how easy it is to "roll your own" in .NET. Even extending MFC controls wasn't this easy. I'm starting to like C# and .NET more and more.