Home > Net >  Ask: how to cancel the DataGridView column headings in the VB.NET order
Ask: how to cancel the DataGridView column headings in the VB.NET order

Time:11-26

I let datagridview connecting sqlsever database by means of programming, and set up the datagridview appearance inside columnheadersdaultcellstyle (column heading styles) properties for middlecenter center as shown in figure

But the DataGridView column headings (column headers) cannot be completely centered

Baidu found on the Internet is a DataGridView column SortMode property (sorting mode) to Automatic by default in this mode, the right column headings have reserved a sort small arrow position, so the whole column headings to the left one more dot

How can I write programs can cancel DataGridView column headings sorting, let title entirely centered?

CodePudding user response:

This seems to be among the number of words has something to do, unified characters and proved,

CodePudding user response:

Gosh, perfectionist, too,

CodePudding user response:

Don't need so entanglements, add a space on the left
  • Related