-
Grid Control
I am trying to Create a Special Grid Control for a priogram of mine in vb .net Basically what i want is a grid that represents a poster that is 54 inches high by 100 inchs wide with each cell representing 1 square inch. how shoiuld i go about this? Ive tried two attempts at this now and both work although both have a series of problems. my first attempt was to create a Cell Control and from that Create a Grid Control that contained a 2 dimensional array of cell controls. this worked well but took an extreamly long time to load and run when changes came about. the benifits of this where that each cell had a click event etc.Due to this loading to slow i decided to create a cell class containg data,Backcolor,Bordercolor,Top and a Left member(s) then i cretead a Grid control that had a Cols and Rows Member along with a cell array and used the GDI Drawing and Drew the control. this loaded and worked faster unfornatly now my cells do not have anyevents.I can find the Cells Location With The Grid Mouse Down Event using the MouseArgs x and Y argument but for events that do not have this argument i am sort of ukered.
My Question is how can i make the first Grid load and Operate faster and or how Can i Get the Loaction of a cell when i Click on iT or Preform Other Ationcs to it on my second option and or am i doing this wrong and should be following another path? I have Tried to Use a MS Flex Grid But havnt Got it to work Very Well.
My cells are a minimum Size of 5x5 Pixels to a maximum of 10x10 Pixels
Thanks for the Help
Jerry