c# - Change the cell border width and also make the cell border only all,left ,right,top,bottom or none -
change cell border width , make cell border all,left ,right,top,bottom or none in winform datagridview. in datagridview problem change border style of each cell , in excel sheet. have tried following didnt work.
datagridviewadvancedborderstyle mystyle = new datagridviewadvancedborderstyle (); datagridviewadvancedborderstyle myplaceholder = new datagridviewadvancedborderstyle (); mystyle.top =datagridviewadvancedcellborderstyle.none; datagridview1.rows[1].cells[1].adjustcellborderstyle(mystyle, myplaceholder, true, true, true, true);
that's not how works. virtual method, you're supposed override in own custom datagridviewcell derived class. , datagridview have filled custom cells.
Comments
Post a Comment