Home » FAQ » ASP.NET » DataGrid » How to databind a textbox in a column template that is inside a datagrid
<asp:TextBox runat='server' id='TextBox1' Text=<%# DataBinder.Eval(Container.DataItem,'theColumName').ToString() %></asp:TextBox>
Same goes true for any other Web Server control
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with