This project is read-only.

MultiImages help

Aug 11, 2009 at 4:09 AM

first, thx for this great tool!

i want to make a multiImage but i want to add the images in other time

{

SourceGrid.Cells.Views.MultiImages modelMultiImages = new SourceGrid.Cells.Views.MultiImages();

grid[currentRow, currentCol].View = modelMultiImages;

}

and when i want to add some images: how can i access to the grid[x, y].View (??). SubImages.Add() without creating a new MultiImages View again ?

thx

 

Aug 11, 2009 at 1:44 PM
Edited Aug 11, 2009 at 1:47 PM
Just grab the view and add to it. for example:
 
((SourceGrid.Cells.Views.MultiImages)grid[currentRow, currentCol].View).SubImages.Add(new .. blah ));
 
You can always add some type checking and all that goodness if you need it.
I tried this out with FrmSample03 and it worked fine.
 
Cheers,
Derek