altering generated code

M

Mike Cooper

Hello all,

Basically, I using a datagrid and want to employ custom textbox
columns that I have developed. Am I able to just delete the
datagridtextboxcolumn definitions generated by Visual Basic.net, and
insert my own? This sounds risky. But the alternative; to delete the
generated definitions and put in my own after the code-generated
section sounds equally risky. So how do I do this? Although my
immediate problem is with the datagrid, I am sure this issue is going
to come up a lot, as I customize my app. Can anyone give me any tips.

Thank you,
Mike Cooper
 
N

Nancy Folsom

Hello all,

Basically, I using a datagrid and want to employ custom textbox
columns that I have developed. Am I able to just delete the
datagridtextboxcolumn definitions generated by Visual Basic.net, and
insert my own? This sounds risky. But the alternative; to delete the
generated definitions and put in my own after the code-generated
section sounds equally risky. So how do I do this? Although my
immediate problem is with the datagrid, I am sure this issue is going
to come up a lot, as I customize my app. Can anyone give me any tips.

Changing generated code will, IME, just be overwritten, so, no, it's better
to not. If you want full control, then start from scratch, IMO.

You might be interested in a new book about .NET code generation:

<http://www.amazon.com/exec/obidos/t...f=sr_1_1/104-2022836-9403108?v=glance&s=books>

a.k.a.

http://tinyurl.com/2c4zt
 
G

Guest

I'm sure this must be a mispost, as this thread is about modifying generated source code, but the library you linked to is very cool indeed!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top