Password field in datagridview,C#
-
Anyone please tell me how to add password column to datagridview in C#. :( :( :( :( :( :( thanks.
-
Anyone please tell me how to add password column to datagridview in C#. :( :( :( :( :( :( thanks.
-
You need to convert the password column into a template column. Then using the smart tags, edit the template column and change the display of the textbox based on the type of data it is holding.
// // dataGridView2 // this.dataGridView2.AllowUserToAddRows = false; this.dataGridView2.AllowUserToDeleteRows = false; this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.inteSetupI, this.inteExtPlanTool, this.inteExtPlanToolDB, this.inteExtPlanToolUID, this.inteExtPlanToolPW}); this.dataGridView2.Location = new System.Drawing.Point(6, 6); this.dataGridView2.Name = "dataGridView2"; this.dataGridView2.Size = new System.Drawing.Size(716, 300); this.dataGridView2.TabIndex = 0; // // inteExtPlanToolPW // this.inteExtPlanToolPW.HeaderText = "External Planing Tool Password"; this.inteExtPlanToolPW.Name = "inteExtPlanToolPW"; this.inteExtPlanToolPW.Resizable = System.Windows.Forms.DataGridViewTriState.True; thank you ravimori to answer my question.this is my code.i want to use "inteExtPlanToolPW" culomn as password fild.can explain it with code.thank you.