Datagrid column containing password

  • Thread starter Thread starter Nicholas Paldino [.NET/C# MVP]
  • Start date Start date
N

Nicholas Paldino [.NET/C# MVP]

Jay,

It is possible, but you are going to have to create a custom data column
to do this. Take a look at the DataGridColumnStyle class, as well as the
DataGridTextBox class, which derives from that class (this is what displays
most data by default in the data grid).

Hope this helps.
 
I need to display a datagrid with user information including password, but I
would like the password to be masked with a password character. If the user
selects to edit the record, I need the password to show in normal text.

Is this possible with a datagrid?

Thank You for any help toward this end!
 
Are there any recent specific examples that you can point me to?

I downloaded an example but there was an error when I tried to open some of
the files.

Nicholas Paldino said:
Jay,

It is possible, but you are going to have to create a custom data column
to do this. Take a look at the DataGridColumnStyle class, as well as the
DataGridTextBox class, which derives from that class (this is what displays
most data by default in the data grid).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jay said:
I need to display a datagrid with user information including password, but
I
would like the password to be masked with a password character. If the
user
selects to edit the record, I need the password to show in normal text.

Is this possible with a datagrid?

Thank You for any help toward this end!
 
Hi Jay,

Try this:
http://msdn.microsoft.com/msdnmag/issues/03/08/datagrids/

HTH,
Rakesh

Jay said:
Are there any recent specific examples that you can point me to?

I downloaded an example but there was an error when I tried to open some of
the files.

Nicholas Paldino said:
Jay,

It is possible, but you are going to have to create a custom data column
to do this. Take a look at the DataGridColumnStyle class, as well as the
DataGridTextBox class, which derives from that class (this is what displays
most data by default in the data grid).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jay said:
I need to display a datagrid with user information including password, but
I
would like the password to be masked with a password character. If the
user
selects to edit the record, I need the password to show in normal text.

Is this possible with a datagrid?

Thank You for any help toward this end!
 
This the link you provided sends me to a windows example. I'm using
ASP.NET. I tried some code using
DataGridTableStyle and the compiler did not recognize it. Are there any
ASP.NET code examples that you can point me to?

THANK YOU!



Rakesh Rajan said:
Hi Jay,

Try this:
http://msdn.microsoft.com/msdnmag/issues/03/08/datagrids/

HTH,
Rakesh

Jay said:
Are there any recent specific examples that you can point me to?

I downloaded an example but there was an error when I tried to open some of
the files.

message news:[email protected]...
Jay,

It is possible, but you are going to have to create a custom data column
to do this. Take a look at the DataGridColumnStyle class, as well as the
DataGridTextBox class, which derives from that class (this is what displays
most data by default in the data grid).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

I need to display a datagrid with user information including
password,
but
I
would like the password to be masked with a password character. If the
user
selects to edit the record, I need the password to show in normal text.

Is this possible with a datagrid?

Thank You for any help toward this end!
 
Back
Top