如何从radgrid为文本框分配值

如何从radgrid为文本框分配值

本文介绍了如何从radgrid为文本框分配值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:TextBox runat="server" ReadOnly="true" ID="AssetItemTextBox"></asp:TextBox><telerik:RadGrid ID="AssetItemListGrid" SkinID="ReadOnlyRadGrid1" runat="server" 

          AutoGenerateColumns="False" GridLines="None"  DataSourceID="AssetListDataSource" OnItemCommand="AssetRadGrid_ItemCommand"   Visible= "false">
      <MasterTableView ClientDataKeyNames="UserAccountID" DataKeyNames="UserAccountID" DataSourceID="AssetListDataSource">
                  
      <RowIndicatorColumn>
      <HeaderStyle Width="20px"></HeaderStyle>
      </RowIndicatorColumn>
                <ExpandCollapseColumn>
                 <HeaderStyle Width="20px"></HeaderStyle>
                 </ExpandCollapseColumn>
         <Columns>
                        <telerik:GridBoundColumn DataField="UserAccountID" DataType="System.Int32" HeaderText="UserAccountID"

                            ReadOnly="True" SortExpression="UserAccountID" UniqueName="UserAccountID" Visible="false">
                        </telerik:GridBoundColumn>
                        
                        <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"

                            UniqueName="Name">
                        </telerik:GridBoundColumn>
                        
                         <telerik:GridBoundColumn DataField="AssetTag" HeaderText="AssetTag" SortExpression="AssetTag"

                            UniqueName="AssetTag">
                        </telerik:GridBoundColumn>
                        
                        <telerik:GridButtonColumn CommandName="Select"  Text="Select"></telerik:GridButtonColumn> 
          </Columns>
       </MasterTableView>
     
             <ClientSettings>
                     <ClientEvents OnRowClick="RowSelected" />
                    <Selecting AllowRowSelect="true" />
             </ClientSettings>
                
     </telerik:RadGrid>  



[修改:添加了前置标签]



[Modified: added pre tags]

推荐答案


这篇关于如何从radgrid为文本框分配值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-26 18:18