Click here to Skip to main content
16,017,488 members

Comments by Member 13262639 (Top 3 by date)

Member 13262639 1-Feb-21 0:05am View    
DataGridViewTextBoxColumn txtbox = new DataGridViewTextBoxColumn();
txtbox.Name = Constants.DCAMOUNTOREDEEM;
txtbox.HeaderText = "Redeem Amount";
this.dataGridView1.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.dataGridView1_CellPainting);
dataGridView1.Columns.Add(txtbox);
foreach (DataGridViewRow dr in dataGridView1.Rows)
{

dr.Cells[Constants.DCAMOUNTOREDEEM].Value = dr.Cells[Constants.DCOFFERVALUE].Value.ToString();

}
Member 13262639 31-Jan-21 23:59pm View    
It is actually showing me the value in that code line. But not able to see it in screen. My columns are empty
Member 13262639 31-Jan-21 8:46am View    
Sorry, I missed the semicolon while posting. But I used it in code. However the above fix didn't work :(