Live Chat Icon For mobile
Live Chat Icon

How to set the maxlength of a textbox (in the EditTemplate of DataGrid) based on a field value in the record

Platform: ASP.NET| Category: DataGrid

<EditItemTemplate> 
<asp:TextBox runat='server' id='txtField' MaxLength=’<%# DataBinder.Eval(Container.DataItem, 'FieldSize') %>’ /> 
</EditItemTemplate> 

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.