Hi,
I am using the following snippet to hide the password in edit mode:
The problem I have is that when I open the record for modification, the password disappear. How can I hide the password in edit mode having all auto generated columns?
I am using the following snippet to hide the password in edit mode:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
{
GridEditFormItem editItem = (GridEditFormItem)e.Item;
TextBox txtpwd = (TextBox)editItem["password"].Controls[0];
txtpwd.TextMode = TextBoxMode.Password;
if (!(e.Item.DataItem is GridInsertionObject))
{
txtpwd.Attributes.Add("value", txtpwd.Text);
}
}
}