I have an UltraWebGrid bound to a Data Source...
At this point, the entire Grid I created is controlled through choices I have made in the Designer. (Of course, I can do some coding if necessary).
I would like to assign a "DefaultValue" for a particular column so that when a new row is added that column takes on the current DateTime (the column is "DateAdded"...duh...). Inside the Designer the "DefaultValue" is greyed out and i am unable to type anything there. Can someone tell me how to accomplish what I am trying to do? (If I can do it in the designer, that would be nice, if not I can do "code behind". I will be using C#.)
And while I am asking, is there an easy way to enable "CRUD" (Change, Upade, Detele) in the UltraWeb Grid or do I need to add a button for saving? I found the "add" button to add new rows and enabled the grid to allow column cahnges, etc. I just cant get the data to actually save. :)
Thanks for any adivce!Shayne
I tried everything I could think of to get the designer to accept a DefaultValue, with no luck. (Hopefully, an Infragistics staff member will chime in the help on that.)
I did find an article in the Online Docs that shows how to set a DefaultValue in the the code-behind. I didn't try it. The online docs are at http://help.infragistics.com/NetAdvantage/NET/2008.2/CLR2.0/ but the navigation scheme there is klunky. The article in question is here: (click here)
in UltraWebGrid1_InitializeLayout event using
e.Layout.Bands(0).Columns.FromKey("JobID").DefaultValue =