or
<telerik:RadGrid ID="rgTVMTimes" runat="server" GridLines="None" OnItemCreated="rgCoinBox_ItemCreated" AllowMultiRowEdit="True" OnPreRender="rgTVMTimes_PreRender" OnColumnCreated="rgTVMTimes_ColumnCreated" OnItemDataBound="rgCoinBox_ItemDataBound" OnItemCommand="rgCoinBox_ItemCommand"> <MasterTableView EditMode="InPlace" CommandItemDisplay="None" CommandItemStyle-HorizontalAlign="Right"> <Columns> <telerik:GridBoundColumn DataField="Heading" HeaderText="" ItemStyle-BackColor="LightGray" SortExpression="Heading" UniqueName="Heading1" ReadOnly="true"> <filtertemplate> <RadTimePiker ID="TVMTime"></RadTimePiker> </filtertemplate> <ItemStyle BackColor="LightGray" /> </telerik:GridBoundColumn> </Columns> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <NoRecordsTemplate> <p> No TVM Machines found. </p> <p> Choose new Location and try again. </p> </NoRecordsTemplate> <commanditemstyle horizontalalign="Right" /> </MasterTableView> </telerik:RadGrid>rgTVMTimes.DataSource = new TVMCashUp().GetTvmMachineTimesGrid(_userInfo.StationID,"TVM Time"); rgTVMTimes.DataBind();rgTVMTimes.Rebind();rgLogCash.DataSource = new TVMCashUp().GetTvmMachineTimesGrid(_userInfo.StationID, "Log Cash Review"); rgLogCash.DataBind(); rgLogCash.Rebind();public DataTable GetTvmMachineTimesGrid(int inLocationid,string grid) { return DataMethods.ReturnMultipleRowResultSet("[HO].[GetTvmMachineTimesGrid]", inLocationid,grid); }Heading TVM1 TVM2 TVM3 TVM4 TVM5 TVM6 TVM7TVM Time 16:10:10 16:10:10 16:10:10 16:10:10 16:10:10 16:10:10 16:10:10Heading TVM1 TVM2 TVM3 TVM4 TVM5 TVM6 TVM7Log Cash Review 0 0 0 0 0 0 0<telerik:RadGrid ID="rgSelections" runat="server" AllowPaging="False" AllowSorting="False" AllowMultiRowSelection="false" AutoGenerateColumns="False" HorizontalAlign="NotSet" AllowAutomaticDeletes="False" AllowAutomaticInserts="False" AllowAutomaticUpdates="false" AllowFilteringByColumn="false" ShowGroupPanel="False" Skin="Metro" Height="800"> <ClientSettings ReorderColumnsOnClient="false" AllowDragToGroup="false" AllowColumnsReorder="false" AllowRowsDragDrop="false"> <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" ScrollHeight="800px"> </Scrolling> <Selecting AllowRowSelect="true"></Selecting> <Resizing AllowRowResize="False" AllowColumnResize="False" EnableRealTimeResize="False"> </Resizing> <ClientEvents OnRowMouseOver="onRowMouseOver" /> </ClientSettings> <MasterTableView DataKeyNames="SlotCode" GridLines="None" AllowMultiColumnSorting="True" AutoGenerateColumns="False" HorizontalAlign="NotSet" CommandItemDisplay="Top" GroupLoadMode="Client"> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldAlias="ClassDate" FieldName="ClassDate" FormatString="{0:dddd MMMM d}" HeaderText="Date"></telerik:GridGroupByField> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="ClassDate" SortOrder="Ascending"></telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> <Columns> <telerik:GridBoundColumn UniqueName="ClassDate" SortExpression="ClassDate" HeaderText="Date" DataField="ClassDate" DataFormatString="{0:M/dd}" Display="false"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="StartTime" SortExpression="StartTime" HeaderText="Start" DataField="StartTime" DataFormatString="{0:hh:mm tt}" ItemStyle-Width="60px" HeaderStyle-Width="60px" ItemStyle-Wrap="false"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="ClassTitleFull" SortExpression="ClassTitleFull" HeaderText="Class" DataField="ClassTitleFull" ItemStyle-Width="100%" HeaderStyle-Width="100%"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Seg" SortExpression="Seg" HeaderText="Segment" DataField="Seg" ItemStyle-Width="60px" HeaderStyle-Width="60px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="ClassSchedulingID" DataField="ClassSchedulingID" SortExpression="ClassSchedulingID" UniqueName="ClassSchedulingID" Display="False"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="SlotCode" SortExpression="SlotCode" HeaderText="SlotCode" DataField="SlotCode" Display="False"> </telerik:GridBoundColumn> <telerik:GridButtonColumn UniqueName="Remove" CommandName="Remove" ButtonType="ImageButton" ImageUrl="images/delete.gif" ItemStyle-Width="30px" HeaderStyle-Width="30px"> </telerik:GridButtonColumn> </Columns> <ExpandCollapseColumn Resizable="False" Visible="False"> <HeaderStyle Width="20px" /> </ExpandCollapseColumn> <RowIndicatorColumn ItemStyle-Width="0px" HeaderStyle-Width="0px" /> <CommandItemTemplate> </CommandItemTemplate> </MasterTableView> </telerik:RadGrid><%-- Edit form master event template --%> <EditFormSettings EditFormType="Template"> <FormTemplate> <div class="data-container"> <fieldset id="FieldsetEventMasterEdit" runat="server" style="width: 97%; height: 110px; margin: 5px; background-color: #FFFFCC;" class="ui-widget ui-widget-content ui-corner-all"> <div style="float: left;"> <asp:Label runat="server"><b>* denotes required field</b></asp:Label> </div> <div style="float: right;"> <asp:Table runat="server"> <asp:TableRow> <asp:TableCell> <telerik:RadButton ID="RadButtonUpdateMasterEvent" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>' runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' UseSubmitBehavior="false" /> </asp:TableCell> <asp:TableCell> <telerik:RadButton ID="RadButtonCancelMasterEvent" Text="Close" runat="server" CausesValidation="False" CommandName="Cancel" UseSubmitBehavior="false" /> </asp:TableCell></asp:TableRow> </asp:Table><telerik:RadGrid runat="server" ID="RadGridEventSub" Height="100%" Width="100%" AllowMultiRowSelection="false" AutoGenerateColumns="false" OnItemCommand="RadGridEventSub_ItemCommand" OnDeleteCommand="RadGridEventSub_DeleteCommand" OnInsertCommand="RadGridEventSub_InsertCommand" OnUpdateCommand="RadGridEventSub_UpdateCommand" OnNeedDataSource="RadGridEventSub_NeedDataSource" OnItemDataBound="RadGridEventSub_ItemDataBound" OnItemCreated="RadGridEventSub_ItemCreated" AllowAutomaticUpdates="false" AllowAutomaticInserts="false"> <MasterTableView CommandItemDisplay="Top" NoMasterRecordsText="There are no events to display..." AllowAutomaticInserts="false" AllowAutomaticUpdates="false" DataKeyNames="EventMasterId, EventSubId, GroupId, Name, EventTypeId" EditMode="EditForms"> <CommandItemSettings AddNewRecordText="Add a new sub event" ShowRefreshButton="false" /> <Columns> <%-- this is the Pencil column for editing the record --%> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center"> <ItemStyle CssClass="GridRecordButton" /> </telerik:GridEditCommandColumn>