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 

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
Post a Comment