I have an Ultrawebgrid (below) inside an UpdatePanel that is loaded when the page loads, but not on postback, and is bound dynamically in the codebehind. I need to be able to add an editable row to the grid and then get the items from the grid. I have two datepicker controls, two textboxes and two dropdown boxes. I am at a loss as to how I should set up the edit templates and then how to get the data from those controls, when I save it. Can someone help me please?
Sorry, here is the grid
<igtbl:UltraWebGrid ID="igGrid" runat="server" DisplayLayout-AutoGenerateColumns="true" EnableAppStyling="True" StyleSetName="Office2007Blue" StyleSetPath="~/ig_res/" DisplayLayout-CellPaddingDefault="5" DisplayLayout-AllowSortingDefault="No"> <Bands> <igtbl:UltraGridBand> <AddNewRow View="NotSet" Visible="NotSet"> </AddNewRow> </igtbl:UltraGridBand> </Bands> <DisplayLayout BorderCollapseDefault="Separate" CellPaddingDefault="5" Name="igGrid" RowHeightDefault="20px" Version="4.00" CellClickActionDefault="Edit" AllowUpdateDefault="Yes"> <FrameStyle> </FrameStyle> <ActivationObject BorderColor="" BorderWidth=""> </ActivationObject> </DisplayLayout></igtbl:UltraWebGrid>
Hello dbishop9,
please check out this article Adding Rows in Code. You should be able to add new editable row like use Add method
igGrid.Rows.Add();
Hope this helps
Sorry, this wasn't helpful. It only shows the method, not how or where to use it. I am using a RowEditTemplate for updating my UltraWebGrid. I have all the settings referenced set, but when I click on the Add icon, nothing happens. I want to be able to click this icon and have a template come up with the necessary controls, textbox, dropdownlist, datechooser, etc. Do I use the same RowEditTemplate somehow or do I need to create a separate template for adding a row? Thanks.