c# - Add multiple controls to GridView column in windows form app -
c# - Add multiple controls to GridView column in windows form app -
i adding 2 columns gridview
below
datagridviewlinkcolumn editlink = new datagridviewlinkcolumn(); editlink.usecolumntextforlinkvalue = true; editlink.headertext = "edit"; editlink.datapropertyname = "lnkcolumn"; editlink.linkbehavior = linkbehavior.systemdefault; editlink.text = "edit"; datagridview1.columns.add(editlink); datagridviewlinkcolumn deletelink = new datagridviewlinkcolumn(); deletelink.usecolumntextforlinkvalue = true; deletelink.headertext = "delete"; deletelink.datapropertyname = "lnkcolumn"; deletelink.linkbehavior = linkbehavior.systemdefault; deletelink.text = "delete"; datagridview1.columns.add(deletelink);
can add together both buttons under same column?
for datagridview
control, need create own usercontrol contains 2 buttons next link show example: multiple controls in single datagridview cell
c# winforms gridview
Comments
Post a Comment