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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Code Generation

Thread ID:





34248 Sep 6,2005 11:01 PM UTC Sep 7,2005 03:00 PM UTC WinForms 5
Tags: GridControl
Asked On September 6, 2005 11:01 PM UTC

The online help says... "In interactive mode, the Essential Grid Control Designer adds verbs that allow you to select a cell or a range of cells and generate C# or VB.NET code for the formatting that has been visually applied to these cells." I go into interactive mode and click on a cell that I have set to checkbox. But I don''t see this verb. Jim

Administrator [Syncfusion]
Replied On September 6, 2005 11:59 PM UTC

The verbs for a GridControl are TouchIt, Edit Base Styles, Toggle Interactive Mode, Cover/Merge Cells, Uncover Cells, Export as Template, Import from Template. The last 2 will save/read the layout as a binary file. To actually see source code, you can use the Touch It verb, and then open the designer generated code in the form''s source ode to see the source generated by the designer.

Replied On September 7, 2005 03:38 AM UTC

I''m confused. When I "touch it", exactly what code is being generated? I don''t see anything different. In any event, this process certainly is a bit different from what the help is describing. Based on that I except to see something like "Generate code" and then find the generated code in the clipboard. Can you elaborate? Say, didn''t you used to work for Stingray?? Jim

Administrator [Syncfusion]
Replied On September 7, 2005 07:55 AM UTC

If you are using .NET 1.1, when you do a TouchIt, it is the code in this normally collapsed region, "#region Windows Form Designer generated code", that is rewritten. In it will be any code needed to produce the designed GridControl. There is no Generate Code verb. If you want to get the generated code on the clipboard, you will have to copy it from the designer generated code section of the form''s file. Yes. I did work at Stingray at one time.

Replied On September 7, 2005 02:10 PM UTC

Ah, now I understand. OK, you might want to change the documentation to avoid future confusion. :) I thought "touch it" changed it from "global mode" to interactive mode. Is it doing that also? And, just for the sake of completeness here, if I don''t touch it, do my changes not get generated? Thanks for your help.

Administrator [Syncfusion]
Replied On September 7, 2005 03:00 PM UTC

Touch it forces the changes to be saved. If you modify the form at design time, and then close the form or compile the project, the changes should also be saved as well.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon