altering generated code

  • Thread starter Thread starter Mike Cooper
  • Start date Start date
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
 
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
 
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!
 
Back
Top