Click here to Skip to main content
15,391,068 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF Expander Control - Custom Header Pin
mikla52110-Apr-09 3:28
Membermikla52110-Apr-09 3:28 
AnswerRe: WPF Expander Control - Custom Header Pin
Insincere Dave10-Apr-09 3:28
MemberInsincere Dave10-Apr-09 3:28 
AnswerRe: WPF Expander Control - Custom Header Pin
Eslam Afifi10-Apr-09 3:35
MemberEslam Afifi10-Apr-09 3:35 
QuestionCreate a System::Windows::Controls::UserControl^ Pin
Member 377636710-Apr-09 2:25
MemberMember 377636710-Apr-09 2:25 
AnswerRe: Create a System::Windows::Controls::UserControl^ Pin
Mark Salsbery10-Apr-09 7:05
MemberMark Salsbery10-Apr-09 7:05 
QuestionWPF Datagrid: change image source on row clicked Pin
johnsontroye9-Apr-09 2:31
Memberjohnsontroye9-Apr-09 2:31 
QuestionWPF DataGrid Column CellStyle at Runtime Pin
zaki19848-Apr-09 23:53
Memberzaki19848-Apr-09 23:53 
AnswerRe: WPF DataGrid Column CellStyle at Runtime Pin
yogeshCJ2-Jun-10 23:44
MemberyogeshCJ2-Jun-10 23:44 
Just Use AutoGeneratedColumns Event of the DataGrid:-
In the below mentioned example DataGrid Name is "dgvTimming"

 void dgvTimming_AutoGeneratedColumns(object sender, EventArgs e)
        {
            foreach (DataGridColumn item in dgvTimming.Columns)
            {
                //dgvTimming.Columns.Remove(item);
                switch (item.Header.ToString())
                {//Plan_Timing,Pacesetter,Contingent
                    //case "CostCentre":
                    case "Plan_Timing":
                        item.Header = "Plan Timing";
                        
                        break;
                    case "Pacesetter":
                    case "Contingent":
                        //item.HeaderTemplate .DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;
                        if (item.GetType().ToString() == "Microsoft.Windows.Controls.DataGridTextColumn")
                        {
                            DataGridTextColumn dg = (DataGridTextColumn)item;
//Now set the String format of cell Currency                            
dg.Binding.StringFormat = "C";
                        }
                        if (item.Header.ToString() == "Contingent")
                            item.IsReadOnly = true;
                        break;
}
}
}

Yogesh Sharma

Questionwhere is the best start line Pin
cppwxwidgetsss8-Apr-09 19:44
Membercppwxwidgetsss8-Apr-09 19:44 
AnswerRe: where is the best start line Pin
Feras Mazen Taleb8-Apr-09 20:27
MemberFeras Mazen Taleb8-Apr-09 20:27 
AnswerRe: where is the best start line Pin
Mark Salsbery9-Apr-09 6:38
MemberMark Salsbery9-Apr-09 6:38 
QuestionAdd 'Command' property to derived control? Pin
David Veeneman8-Apr-09 9:04
MemberDavid Veeneman8-Apr-09 9:04 
AnswerRe: Add 'Command' property to derived control? Pin
David Veeneman8-Apr-09 14:06
MemberDavid Veeneman8-Apr-09 14:06 
QuestionWPF textbox, update problem. Mode: TwoWay Pin
marca2927-Apr-09 23:42
Membermarca2927-Apr-09 23:42 
AnswerRe: WPF textbox, update problem. Mode: TwoWay Pin
R2B210-Apr-09 5:31
MemberR2B210-Apr-09 5:31 
Questionthat very confusing in virtual directory and MIME Type................ Pin
Piyush Vardhan Singh7-Apr-09 21:30
MemberPiyush Vardhan Singh7-Apr-09 21:30 
AnswerRe: that very confusing in virtual directory and MIME Type................ Pin
Mark Salsbery8-Apr-09 12:38
MemberMark Salsbery8-Apr-09 12:38 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Piyush Vardhan Singh8-Apr-09 21:43
MemberPiyush Vardhan Singh8-Apr-09 21:43 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Mark Salsbery9-Apr-09 6:33
MemberMark Salsbery9-Apr-09 6:33 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Piyush Vardhan Singh9-Apr-09 19:45
MemberPiyush Vardhan Singh9-Apr-09 19:45 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Mark Salsbery10-Apr-09 6:58
MemberMark Salsbery10-Apr-09 6:58 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Piyush Vardhan Singh12-Apr-09 19:15
MemberPiyush Vardhan Singh12-Apr-09 19:15 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Piyush Vardhan Singh13-Apr-09 5:58
MemberPiyush Vardhan Singh13-Apr-09 5:58 
QuestionTextbox border curve Pin
Ravi Mori7-Apr-09 19:44
MemberRavi Mori7-Apr-09 19:44 
AnswerRe: Textbox border curve Pin
ABitSmart7-Apr-09 21:49
MemberABitSmart7-Apr-09 21:49 

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.