Tuesday, February 17, 2015

When inline editing a row at a DevExpress grid you may want a password column to use a password type input field.

Make that happen like so:

private void MyGrid_HtmlRowPrepared(object sender,
      ASPxGridViewTableRowEventArgs e)
{
   ASPxTextBox password = (ASPxTextBox) e.Row.Cells[2].Controls[0];
   password.Password = true;
}

 
 

Wire up the event like so:

MyGrid.HtmlRowPrepared += MyGrid_HtmlRowPrepared;

No comments:

Post a Comment