Click here to Skip to main content
15,920,629 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting all the table names from 'mdb' file... Pin
leppie14-Jun-02 5:56
leppie14-Jun-02 5:56 
GeneralRe: Getting all the table names from 'mdb' file... Pin
paulb16-Jun-02 14:11
paulb16-Jun-02 14:11 
GeneralRe: Getting all the table names from 'mdb' file... Pin
Pranoti16-Jun-02 23:39
Pranoti16-Jun-02 23:39 
GeneralYet more data grid issues Pin
///Ansch13-Jun-02 14:44
///Ansch13-Jun-02 14:44 
GeneralRe: Yet more data grid issues Pin
Rocky Moore13-Jun-02 18:49
Rocky Moore13-Jun-02 18:49 
GeneralRe: Yet more data grid issues Pin
leppie13-Jun-02 23:46
leppie13-Jun-02 23:46 
GeneralRe: Yet more data grid issues Pin
Domenic Denicola16-Jun-02 8:35
Domenic Denicola16-Jun-02 8:35 
GeneralAnother DataGrid question Pin
J. Ehrnström13-Jun-02 12:33
J. Ehrnström13-Jun-02 12:33 
I have a problem getting my column headers correctly aligned in my datagrid. I've got a total of six columns and in most of them the column header text is right next to the column border with no margin/padding at all. In a couple of the columns the alignment seems to work though, but I haven't been able to any difference that should matter.

Here's a small portion of the code, taken from the InitializeComponent method:

this.dataGridTextBoxColumn5.Alignment = System.Windows.Forms.HorizontalAlignment.Right;
this.dataGridWaterColumn.Format = "p1";
this.dataGridWaterColumn.FormatInfo = null;
this.dataGridWaterColumn.HeaderText = "Percent";
this.dataGridWaterColumn.MappingName = "Percent";
this.dataGridWaterColumn.Width = 80;


The data is correctly aligned, it's just the header text that is misaligned. How come? The problem is the same whether I choose left, right or center alignment.
GeneralFlicker Free Listview Pin
Brandon Parker13-Jun-02 7:13
Brandon Parker13-Jun-02 7:13 
GeneralRe: Flicker Free Listview Pin
leppie13-Jun-02 21:06
leppie13-Jun-02 21:06 
GeneralRe: Flicker Free Listview Pin
Brandon Parker14-Jun-02 4:05
Brandon Parker14-Jun-02 4:05 
GeneralFree Windows Form Designer Pin
Gavin Jerman13-Jun-02 6:19
Gavin Jerman13-Jun-02 6:19 
GeneralRe: Free Windows Form Designer Pin
leppie13-Jun-02 9:53
leppie13-Jun-02 9:53 
GeneralRe: Free Windows Form Designer Pin
Rickard Andersson2013-Jun-02 12:11
Rickard Andersson2013-Jun-02 12:11 
QuestionUsing context menu item in main menu? Pin
Martin Haesemeyer13-Jun-02 4:48
Martin Haesemeyer13-Jun-02 4:48 
GeneralC# Controls - 3 questions Pin
Maciej Pirog13-Jun-02 4:02
Maciej Pirog13-Jun-02 4:02 
GeneralRe: C# Controls - 3 questions Pin
Russell Morris13-Jun-02 4:40
Russell Morris13-Jun-02 4:40 
GeneralRe: C# Controls - 3 questions Pin
Maciej Pirog13-Jun-02 8:17
Maciej Pirog13-Jun-02 8:17 
Generalweb forms sending parameters Pin
sharon13-Jun-02 2:25
sharon13-Jun-02 2:25 
GeneralRe: web forms sending parameters Pin
Rama Krishna Vavilala13-Jun-02 7:05
Rama Krishna Vavilala13-Jun-02 7:05 
GeneralObject Role Modeling Pin
gicio13-Jun-02 1:07
gicio13-Jun-02 1:07 
GeneralRe: Object Role Modeling Pin
gicio14-Jun-02 3:10
gicio14-Jun-02 3:10 
GeneralCustomizing DataGrid Pin
J. Ehrnström12-Jun-02 16:45
J. Ehrnström12-Jun-02 16:45 
GeneralRe: Customizing DataGrid Pin
Rocky Moore12-Jun-02 19:49
Rocky Moore12-Jun-02 19:49 
GeneralRe: Customizing DataGrid Pin
J. Ehrnström13-Jun-02 4:28
J. Ehrnström13-Jun-02 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.