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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -