c# - How to make particular cell visible inside Gridview, not complete column? -


i had gridview contains 3 columns , during form load 2 columns visible 1 column having data , other having checkbox.

i want when check checkbox in particular cell, corresponding checkbox third column cell visible, don't want complete 3rd column visible on checking check box ,gridview hardcoded rows dymanic (column1,column2 set visible , column 3 set invisible)

in below inmage when m checking checkbox complete thried column visible,which don't want enter image description here

enter image description here

can 1 me in this?

i tried below code making 3rd column visible not, particular cell

public form1()  {     datagridview1.cellvaluechanged += new datagridviewcelleventhandler(datagridview1_cellvaluechanged); }  void datagridview1_cellvaluechanged(object sender, datagridviewcelleventargs e) {     datagridview1.columns[e.columnindex + 1].visible = true; } 

well can try rowcommand event see have event created checkbox ,try find row index particular row , use cell number (cell[2]) find control , assign property visible = false,


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -