开发者

how to add select option to datagrid control in asp.net

开发者 https://www.devze.com 2023-03-01 13:46 出处:网络
<asp:DataGrid runat=\"Server\" id=\"dg\">开发者_如何学Go;</asp:DataGrid> There are probably a number of ways, but the most configurable is likely going to be by adding a TemplateColumn and
<asp:DataGrid runat="Server" id="dg">开发者_如何学Go;</asp:DataGrid>


There are probably a number of ways, but the most configurable is likely going to be by adding a TemplateColumn and putting the controls you need in that column.


look this

 <asp:DataGrid  runat="server">
   <Columns>
      <asp:TemplateColumn>
        <ItemTemplate>
            <asp:DropDownList  runat="server"></asp:DropDownList>
         </ItemTemplate> 
      </asp:TemplateColumn>
   </Columns>
 </asp:DataGrid>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号