In the Radgrid, item A cells are merged into two (Span)

1 Answer 22 Views
Grid
anna
Top achievements
Rank 1
Bronze
Iron
anna asked on 05 Jan 2022, 10:33 AM

 

Attached File : span.png

 

Cell A is spanned by combining two cells.
Cells B, C, and D were assigned one cell each.

I would like each cell a to be assigned 1 cell.

I want cell a to be one cell each like cells b, c, and d.

 


<telerik:radgrid id="gv" runat="server" allowpaging="true" allowsorting="true" enableembeddedskins="false" height="610px"
                                                            cellspacing="0" autogeneratecolumns="false" gridlines="Both" pagesize="20" onneeddatasource="gv_NeedDataSource" onexcelexportcellformatting="gv_ExcelExportCellFormatting">
			                       <ClientSettings>
                               <Selecting AllowRowSelect="True" />
                               <Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="false" ClipCellContentOnResize="true" EnableRealTimeResize="false" AllowResizeToFit="false" />
                             
                                          <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="4"></Scrolling>
                             </ClientSettings>
                               <MasterTableView AlternatingItemStyle-Wrap="true" EnableNoRecordsTemplate="true" ShowHeader="true" ShowHeadersWhenNoRecords="true" Width="100%" ItemStyle-Wrap="false" HeaderStyle-Wrap="false" HeaderStyle-Font-Bold="true" TableLayout="Fixed">
                                 <ColumnGroups>
                                    

                                    <telerik:GridColumnGroup HeaderText="D+0" Name="D0" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="D+1" Name="D1" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="D+2" Name="D2" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="D+3" Name="D3" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="D+4" Name="D4" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="D+5" Name="D5" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="D+6" Name="D6" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="D+7" Name="D7" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="D+8" Name="D8" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="D+9" Name="D9" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
                                     
                                    <telerik:GridColumnGroup HeaderText="1T<br>08~10" Name="T1" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D0"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="2T<br>10~12" Name="T2" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D0"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="3T<br>13~15" Name="T3" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D0"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="4T<br>15~17" Name="T4" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D0"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="5T<br>17~19" Name="T5" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D0"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="6T<br>20~22" Name="T6" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D0"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="7T<br>22~24" Name="T7" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D0"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="8T<br>01~03" Name="T8" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D0"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="9T<br>03~05" Name="T9" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D0"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="10T<br>05~07" Name="T10" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D0"></telerik:GridColumnGroup>
                                                                          
                                    <telerik:GridColumnGroup HeaderText="1T<br>08~10" Name="D1T1" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D1"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="2T<br>10~12" Name="D1T2" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D1"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="3T<br>13~15" Name="D1T3" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D1"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="4T<br>15~17" Name="D1T4" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D1"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="5T<br>17~19" Name="D1T5" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D1"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="6T<br>20~22" Name="D1T6" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D1"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="7T<br>22~24" Name="D1T7" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D1"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="8T<br>01~03" Name="D1T8" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D1"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="9T<br>03~05" Name="D1T9" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D1"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="10T<br>05~07" Name="D1T10" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D1"></telerik:GridColumnGroup>
                                    
                                     
                                     <telerik:GridColumnGroup HeaderText="1T<br>08~10" Name="D2T1" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D2"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="2T<br>10~12" Name="D2T2" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D2"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="3T<br>13~15" Name="D2T3" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D2"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="4T<br>15~17" Name="D2T4" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D2"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="5T<br>17~19" Name="D2T5" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D2"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="6T<br>20~22" Name="D2T6" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D2"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="7T<br>22~24" Name="D2T7" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D2"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="8T<br>01~03" Name="D2T8" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D2"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="9T<br>03~05" Name="D2T9" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D2"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="10T<br>05~07" Name="D2T10" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D2"></telerik:GridColumnGroup>
                                    
                                     
                                    <telerik:GridColumnGroup HeaderText="1T<br>08~10" Name="D3T1" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D3"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="2T<br>10~12" Name="D3T2" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D3"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="3T<br>13~15" Name="D3T3" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D3"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="4T<br>15~17" Name="D3T4" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D3"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="5T<br>17~19" Name="D3T5" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D3"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="6T<br>20~22" Name="D3T6" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D3"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="7T<br>22~24" Name="D3T7" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D3"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="8T<br>01~03" Name="D3T8" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D3"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="9T<br>03~05" Name="D3T9" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D3"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="10T<br>05~07" Name="D3T10" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D3"></telerik:GridColumnGroup>
                                    
                                     
                                    <telerik:GridColumnGroup HeaderText="1T<br>08~10" Name="D4T1" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D4"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="2T<br>10~12" Name="D4T2" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D4"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="3T<br>13~15" Name="D4T3" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D4"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="4T<br>15~17" Name="D4T4" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D4"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="5T<br>17~19" Name="D4T5" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D4"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="6T<br>20~22" Name="D4T6" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D4"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="7T<br>22~24" Name="D4T7" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D4"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="8T<br>01~03" Name="D4T8" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D4"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="9T<br>03~05" Name="D4T9" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D4"></telerik:GridColumnGroup>
                                    <telerik:GridColumnGroup HeaderText="10T<br>05~07" Name="D4T10" HeaderStyle-HorizontalAlign="Center" ParentGroupName="D4"></telerik:GridColumnGroup>
                                 
                                 
                                 </ColumnGroups>
                                 <Columns>   
                                                             
                                    <telerik:GridBoundColumn  DataField="LINE_CODE" HeaderText="라인" Visible="true">
                                      <HeaderStyle Width="60px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="60px"  CssClass="rgAltRow" HorizontalAlign="Center" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="PRODUCT_CODE" HeaderText="품번" Visible="true">
                                      <HeaderStyle Width="130px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="130px"  CssClass="rgAltRow" HorizontalAlign="Center" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="CAR_TYPE" HeaderText="차종" Visible="true">
                                      <HeaderStyle Width="90px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="90px"  CssClass="rgAltRow" HorizontalAlign="Center" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="ALC_CODE" HeaderText="ALC" Visible="true">
                                      <HeaderStyle Width="100px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="100px"  CssClass="rgAltRow" HorizontalAlign="Center" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="SHORTAGE" HeaderText="부족량" Visible="true">
                                      <HeaderStyle Width="160px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="160px"  CssClass="rgAltRow" HorizontalAlign="Center" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="START_STOCK_CP" HeaderText="재고" Visible="true">
                                      <HeaderStyle Width="160px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="160px"  CssClass="rgAltRow" HorizontalAlign="Center" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="START_STOCK_MD" HeaderText="모듈" Visible="true">
                                      <HeaderStyle Width="160px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="160px"  CssClass="rgAltRow" HorizontalAlign="Center" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="START_STOCK" HeaderText="합계" Visible="true">
                                      <HeaderStyle Width="160px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="160px"  CssClass="rgAltRow" HorizontalAlign="Center" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                     <telerik:GridBoundColumn DataField="D0_TOTAL" HeaderText="D0서열" Visible="true">
                                      <HeaderStyle Width="160px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="160px"  CssClass="rgAltRow" HorizontalAlign="left" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>
                                     
                                    <telerik:GridBoundColumn DataField="D1_2_TOTAL" HeaderText="D+1(1~2T)" Visible="true">
                                      <HeaderStyle Width="160px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="160px"  CssClass="rgAltRow" HorizontalAlign="left" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="D1_6_TOTAL" HeaderText="D+1(3~6T)" Visible="true">
                                      <HeaderStyle Width="160px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" />
                                      <ItemStyle Width="160px"  CssClass="rgAltRow" HorizontalAlign="left" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>
                                     
                                    <telerik:GridBoundColumn DataField="D0_PLAN" HeaderText="금일계획" Visible="true">
                                      <ItemStyle   CssClass="grid_cell_line1" HorizontalAlign="Right" Wrap="false" Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridBoundColumn>





                                    <telerik:GridTemplateColumn DataField="D0T01" HeaderText="1T" Visible="true" ColumnGroupName="T1">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                        <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                     </telerik:GridTemplateColumn>  

                                    <telerik:GridTemplateColumn DataField="D0T02" HeaderText="2T" Visible="true" ColumnGroupName="T2">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                        <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>
                                     
                                    <telerik:GridTemplateColumn DataField="D0T03" HeaderText="3T" Visible="true" ColumnGroupName="T3">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                        <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>                                        
                                    </telerik:GridTemplateColumn>
                                     
                                    <telerik:GridTemplateColumn DataField="D0T04" HeaderText="4T" Visible="true" ColumnGroupName="T4">
                                    <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                        <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/> 
                                    </telerik:GridTemplateColumn>
                                    
                                     <telerik:GridTemplateColumn DataField="D0T05" HeaderText="5T" Visible="true" ColumnGroupName="T5">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>

                                    <telerik:GridTemplateColumn DataField="D0T06" HeaderText="6T" Visible="true" ColumnGroupName="T6">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>

                                    <telerik:GridTemplateColumn DataField="D0T07" HeaderText="7T" Visible="true" ColumnGroupName="T7">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                    <telerik:GridTemplateColumn DataField="D0T08" HeaderText="8T" Visible="true" ColumnGroupName="T8">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                    <telerik:GridTemplateColumn DataField="D0T09" HeaderText="9T" Visible="true" ColumnGroupName="T9">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                    <telerik:GridTemplateColumn DataField="D0T10" HeaderText="10T" Visible="true" ColumnGroupName="T10">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>




                                    <telerik:GridTemplateColumn DataField="D1T01" HeaderText="1T" Visible="true" ColumnGroupName="D1T1">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                    <telerik:GridTemplateColumn DataField="D1T02" HeaderText="2T" Visible="true" ColumnGroupName="D1T2">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                    <telerik:GridTemplateColumn DataField="D1T03" HeaderText="3T" Visible="true" ColumnGroupName="D1T3">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                    <telerik:GridTemplateColumn DataField="D1T04" HeaderText="4T" Visible="true" ColumnGroupName="D1T4">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                      <telerik:GridTemplateColumn DataField="D1T05" HeaderText="5T" Visible="true" ColumnGroupName="D1T5">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                       <telerik:GridTemplateColumn DataField="D1T06" HeaderText="6T" Visible="true" ColumnGroupName="D1T6">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                         <telerik:GridTemplateColumn DataField="D1T07" HeaderText="7T" Visible="true" ColumnGroupName="D1T7">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                          <telerik:GridTemplateColumn DataField="D1T08" HeaderText="8T" Visible="true" ColumnGroupName="D1T8">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                          <telerik:GridTemplateColumn DataField="D1T09" HeaderText="9T" Visible="true" ColumnGroupName="D1T9">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                           <telerik:GridTemplateColumn DataField="D1T10" HeaderText="10T" Visible="true" ColumnGroupName="D1T10">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>




                                      <telerik:GridTemplateColumn DataField="D2T01" HeaderText="1T" Visible="true" ColumnGroupName="D2T1">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                        <telerik:GridTemplateColumn DataField="D2T02" HeaderText="2T" Visible="true" ColumnGroupName="D2T2">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                      <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>


                                       <telerik:GridTemplateColumn DataField="D2T03" HeaderText="3T" Visible="true" ColumnGroupName="D2T3">
                                      <ItemStyle CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White"   Width="65px"/>
                                       <HeaderStyle CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Width="65px"/>
                                    </telerik:GridTemplateColumn>
                                     

                                    <telerik:GridBoundColumn DataField="D2T04" HeaderText="4T" Visible="true" ColumnGroupName="D2T4">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>



                                    <telerik:GridBoundColumn DataField="D2T05" HeaderText="5T" Visible="true" ColumnGroupName="D2T5">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D2T06" HeaderText="6T" Visible="true" ColumnGroupName="D2T6" >
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D2T07" HeaderText="7T" Visible="true" ColumnGroupName="D2T7">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D2T08" HeaderText="8T" Visible="true" ColumnGroupName="D2T8">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D2T09" HeaderText="9T" Visible="true" ColumnGroupName="D2T9">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D2T10" HeaderText="10T" Visible="true" ColumnGroupName="D2T10">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>





                                    <telerik:GridBoundColumn DataField="D3T01" HeaderText="1T" Visible="true" ColumnGroupName="D3T1">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D3T02" HeaderText="2T" Visible="true" ColumnGroupName="D3T2">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                                                      
                                    <telerik:GridBoundColumn DataField="D3T03" HeaderText="3T" Visible="true" ColumnGroupName="D3T3">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D3T04" HeaderText="4T" Visible="true" ColumnGroupName="D3T4">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D3T05" HeaderText="5T" Visible="true" ColumnGroupName="D3T5">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D3T06" HeaderText="6T" Visible="true" ColumnGroupName="D3T6">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D3T07" HeaderText="7T" Visible="true" ColumnGroupName="D3T7">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D3T08" HeaderText="8T" Visible="true" ColumnGroupName="D3T8">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                    <telerik:GridBoundColumn DataField="D3T09" HeaderText="9T" Visible="true" ColumnGroupName="D3T9">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>
                                     

                                    <telerik:GridBoundColumn DataField="D3T10" HeaderText="10T" Visible="true" ColumnGroupName="D3T10">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>



                                     
                                    <telerik:GridBoundColumn DataField="D4T01" HeaderText="1T" Visible="true" ColumnGroupName="D4T1">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                     
                                    <telerik:GridBoundColumn DataField="D4T02" HeaderText="2T" Visible="true" ColumnGroupName="D4T2">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                     
                                    <telerik:GridBoundColumn DataField="D4T03" HeaderText="3T" Visible="true" ColumnGroupName="D4T3">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                     
                                    <telerik:GridBoundColumn DataField="D4T04" HeaderText="4T" Visible="true" ColumnGroupName="D4T4">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                     
                                    <telerik:GridBoundColumn DataField="D4T05" HeaderText="5T" Visible="true" ColumnGroupName="D4T5">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                     
                                    <telerik:GridBoundColumn DataField="D4T06" HeaderText="6T" Visible="true" ColumnGroupName="D4T6">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="D4T07" HeaderText="7T" Visible="true" ColumnGroupName="D4T7">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="D4T08" HeaderText="8T" Visible="true" ColumnGroupName="D4T8">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="D4T09" HeaderText="9T" Visible="true" ColumnGroupName="D4T9">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="D4T10" HeaderText="10T" Visible="true" ColumnGroupName="D4T10">
		                                  <HeaderStyle Width="65px" CssClass="main_column_header2"  HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="11px"/>
		                                  <ItemStyle Width="65px"  CssClass="rgAltRow" HorizontalAlign="right" VerticalAlign="Middle" Height="22px" BackColor="White" />
                                    </telerik:GridBoundColumn>


                                  </Columns>
                                  <PagerStyle AlwaysVisible="true" PageSizeControlType="RadDropDownList" PageSizes="20,50,100,200 "  FirstPageImageUrl="../../image/list_paging_v1.gif" PrevPageImageUrl="../../image/list_paging_v2.gif" NextPageImageUrl="../../image/list_paging_v3.gif" LastPageImageUrl="../../image/list_paging_v4.gif"></PagerStyle>
                                  <NoRecordsTemplate>
                                    <div style="text-align: center; height: 35px;padding-top:20px;">
                                    </div>
                                  </NoRecordsTemplate>
                              </MasterTableView>
                            </telerik:radgrid>

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 05 Jan 2022, 11:46 AM

Hi Anna,

From the Screenshot, it looks like that Columns 1T and 2T are assigned to the same column group.

However, in the Grid markup you shared, 1T and 2T columns are assigned to different Groups.

 

The Groups

If I test this one it looks the way you want it to be displayed:

 

All I did was assign some Random data to the Grid. This is the C# code

protected void gv_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    (sender as RadGrid).DataSource = Enumerable.Range(1, 2).Select(x => new
    {
        LINE_CODE = x,
        PRODUCT_CODE = x,
        CAR_TYPE = x,
        ALC_CODE = x,
        SHORTAGE = x,
        START_STOCK_CP = x,
        START_STOCK_MD = x,
        START_STOCK = x,
        D0_TOTAL = x,
        D1_2_TOTAL = x,
        D1_6_TOTAL = x,
        D0_PLAN = x,
        D0T01 = x,
        D0T02 = x,
        D0T03 = x,
        D0T04 = x,
        D0T05 = x,
        D0T06 = x,
        D0T07 = x,
        D0T08 = x,
        D0T09 = x,
        D0T10 = x,
        D1T01 = x,
        D1T02 = x,
        D1T03 = x,
        D1T04 = x,
        D1T05 = x,
        D1T06 = x,
        D1T07 = x,
        D1T08 = x,
        D1T09 = x,
        D1T10 = x,
        D2T01 = x,
        D2T02 = x,
        D2T03 = x,
        D2T04 = x,
        D2T05 = x,
        D2T06 = x,
        D2T07 = x,
        D2T08 = x,
        D2T09 = x,
        D2T10 = x,
        D3T01 = x,
        D3T02 = x,
        D3T03 = x,
        D3T04 = x,
        D3T05 = x,
        D3T06 = x,
        D3T07 = x,
        D3T08 = x,
        D3T09 = x,
        D3T10 = x,
        D4T01 = x,
        D4T02 = x,
        D4T03 = x,
        D4T04 = x,
        D4T05 = x,
        D4T06 = x,
        D4T07 = x,
        D4T08 = x,
        D4T09 = x,
        D4T10 = x
           
    }).ToList();
}

protected void gv_ExcelExportCellFormatting(object sender, Telerik.Web.UI.ExcelExportCellFormattingEventArgs e)
{

}

 

 

Regards,
Attila Antal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
anna
Top achievements
Rank 1
Bronze
Iron
Answers by
Attila Antal
Telerik team
Share this question
or