Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
RowEditTemplate, UltraGrid & custom DataSource = can't do it
posted

Hi everybody,

I'm having a problem with RowEditTemplate concerning its grid's DataSource.
I basically have to display some data from a DB into an UltraGrid and be able to edit them through a RowEditTemplate, but It seems like I can set up a designer-created RowEditTemplate for an UltraGrid only by means of a designer-created DataSource.

As I want to have a better control on my data and my code, I prefer to programmatically initialize a DataSet, populate it with tables (filled by my custom queries) and use it as DataSource for my grid. But this way the designer won't let me manage the RowEditTemplate and I have to set it up manually. And this would be painful as I'd have to manage a large number of controls for a large number of fields.

So is there a way to solve this problem? Thank you in advance,

Giorgio

Edit:
well, if VisualStudio would not separate the designer-generated code from the rest of the code putting it in another and quite untouchable file, there would be no problem at all I suppose. Editing that part of code would do the job but ... you just can't 'cause that code is practically ... a ghost :P

Parents Reply Children
No Data