This is a migrated thread and some comments may be shown as answers.

Encript input data in GridBoundColumn

1 Answer 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bahram
Top achievements
Rank 2
Bahram asked on 15 Jun 2011, 10:51 AM
Hi everybody,
I am using a Radgrid in my application with multiple type of data,I want to use a password GridBoundColumn and do not show the entering password to the user.
It can be done in RadTextBox with this attribue:
TextMode="Password"
but I didnt found the similar way for RadGrid Data Columns.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Jun 2011, 03:41 PM
Hello Bahram,

Try the following code snippet to achieve your requirement.
C#:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
 {
if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
        {
            GridEditFormItem edititem = (GridEditFormItem)e.Item;
            TextBox txt = (TextBox)edititem["ColumnUniqueName"].Controls[0];
            txt.TextMode = TextBoxMode.Password;    
        }
 }

Thanks,
Princy.
Tags
Grid
Asked by
Bahram
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or