We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Grid location

Hi, Is it possible to add an offset on the grid start location? I have Horizontal and Vertical spacing set to 28 pixels and want the first grid square to start in position x=10px,y=10px instead of 0;0 as it is now. Best Regards Tommy

3 Replies

AD Administrator Syncfusion Team December 10, 2004 06:06 PM

Hi Here is a sample that shows how you can do what you are seeking. It contains a derived Diagram in (MyDiagram) in which the CreateView() is overriden to return a custom View (MyView). In the derived View the CreateGrid() is overriden to return a custom LayoutGrid (LayoutGrid). Take a look at the code in the MyLayoutGrid class in which Draw() and DrawLineGrid() are overriden and changes can be made as per your requirements. Regards Arun


TN Tommy Norman December 13, 2004 05:11 AM

Hi Arun, Thanks alot for the code example this looks promising! However this means I have to go to 3.0.0.19 which is still a beta. When can I expect the release of 3.0? I have to deliver in Mars and I don''t want to deliver beta assemblies. Best Regards Tommy


AD Administrator Syncfusion Team December 13, 2004 11:28 AM

Hi Tommy The 3.0 version of Essential Suite is scheduled to ship this week. You can contact our Sales Team at salessupport@syncfusion.com if you need a key for the 3.0 version. Regards Arun

Loader.
Live Chat Icon For mobile
Up arrow icon