Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
325
Display Password Character
posted

Can anybody give me a clue as to how to display password characters in place of the text in a WebDataGrid?

I've figured out how to do this when I am adding or editing a cell using a Grid Editor Provider, but it's not clear to me how to change the display to replace the text with password characters when I am just viewing the data table.

Appreciate any help!

Parents
  • 19693
    posted

    Hello ptiedman and rsutton333,

     

    I recommend you using Templated column containing WebTextEditor in the ItemTemplate.

    By setting the border styles and colors you can make it looks like non templated field :

     

                    <ig:TemplateDataField Key="CategoryName" Width="250px">

                        <ItemTemplate>

                            <ig:WebTextEditor ID="WebTextEditor1" runat="server"

    Value='<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "CategoryName") %>'

                                TextMode="Password" ReadOnly="false" BorderStyle="None"

    BorderColor="Transparent"  BackColor="Transparent">

                            </ig:WebTextEditor>

                        </ItemTemplate>

                        <Header Text="CategoryName" />

                    </ig:TemplateDataField>

     

    Hope this helps

Reply Children