Click here to Skip to main content
15,885,216 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Attribute in .net Pin
AmitGajjar29-May-14 6:44
professionalAmitGajjar29-May-14 6:44 
Questionhow to change DataGrid specific column alignment to Center in C# programmatically Pin
ven75327-May-14 23:49
ven75327-May-14 23:49 
AnswerRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
Eddy Vluggen28-May-14 0:28
professionalEddy Vluggen28-May-14 0:28 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
ven75328-May-14 1:58
ven75328-May-14 1:58 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
Eddy Vluggen28-May-14 3:00
professionalEddy Vluggen28-May-14 3:00 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
ven75328-May-14 3:32
ven75328-May-14 3:32 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
Eddy Vluggen28-May-14 5:06
professionalEddy Vluggen28-May-14 5:06 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
ven75328-May-14 20:40
ven75328-May-14 20:40 
No i am creating in windows service application. There i am using datagrid

through service cs file i am creating dataset
DataGrid dg1 = new DataGrid();
dg1.ItemStyle.HorizontalAlign = HorizontalAlign.Center; this will work for all the column items and align will become center.
but i need to do for particular column
not working
dg1.Columns[3].ItemStyle.HorizontalAlign = HorizontalAlign.Center;

How to achieve this and it is nor datagridview only DataGrid.

Please reply me.
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
Pete O'Hanlon28-May-14 20:50
mvePete O'Hanlon28-May-14 20:50 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
ven75329-May-14 0:11
ven75329-May-14 0:11 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
Pete O'Hanlon29-May-14 0:15
mvePete O'Hanlon29-May-14 0:15 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
ven75330-May-14 2:04
ven75330-May-14 2:04 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
Pete O'Hanlon30-May-14 2:13
mvePete O'Hanlon30-May-14 2:13 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
Dave Kreskowiak29-May-14 1:47
mveDave Kreskowiak29-May-14 1:47 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
ven75330-May-14 2:05
ven75330-May-14 2:05 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
Dave Kreskowiak30-May-14 4:12
mveDave Kreskowiak30-May-14 4:12 
AnswerRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
Eddy Vluggen29-May-14 20:59
professionalEddy Vluggen29-May-14 20:59 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
ven75330-May-14 2:09
ven75330-May-14 2:09 
GeneralRe: how to change DataGrid specific column alignment to Center in C# programmatically Pin
Eddy Vluggen30-May-14 5:28
professionalEddy Vluggen30-May-14 5:28 
QuestionHelp with loop Pin
byka27-May-14 8:26
byka27-May-14 8:26 
AnswerRe: Help with loop Pin
Eddy Vluggen27-May-14 8:59
professionalEddy Vluggen27-May-14 8:59 
QuestionRetrieving the .NET 4.0 install path from a batch file Pin
Frank W. Wu23-May-14 5:55
Frank W. Wu23-May-14 5:55 
AnswerRe: Retrieving the .NET 4.0 install path from a batch file Pin
Richard MacCutchan23-May-14 6:11
mveRichard MacCutchan23-May-14 6:11 
GeneralRe: Retrieving the .NET 4.0 install path from a batch file Pin
Frank W. Wu23-May-14 6:19
Frank W. Wu23-May-14 6:19 
GeneralRe: Retrieving the .NET 4.0 install path from a batch file Pin
Richard MacCutchan23-May-14 6:41
mveRichard MacCutchan23-May-14 6:41 

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.