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