Click here to Skip to main content
15,848,558 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Impossible? Get instance of MainWindow from extern WPF-application Pin
Gerry Schmitz24-Mar-21 6:40
mveGerry Schmitz24-Mar-21 6:40 
GeneralRe: Impossible? Get instance of MainWindow from extern WPF-application Pin
Mc_Topaz25-Mar-21 1:02
Mc_Topaz25-Mar-21 1:02 
QuestionWPF DataGrid Custom Group Header Pin
Kevin Marois22-Mar-21 9:47
professionalKevin Marois22-Mar-21 9:47 
AnswerRe: WPF DataGrid Custom Group Header Pin
Richard Deeming22-Mar-21 23:35
mveRichard Deeming22-Mar-21 23:35 
QuestionDynamic WPF DataGrid Pin
Kevin Marois19-Mar-21 11:41
professionalKevin Marois19-Mar-21 11:41 
AnswerRe: Dynamic WPF DataGrid Pin
Richard Deeming21-Mar-21 23:50
mveRichard Deeming21-Mar-21 23:50 
GeneralRe: Dynamic WPF DataGrid Pin
Kevin Marois22-Mar-21 8:07
professionalKevin Marois22-Mar-21 8:07 
GeneralRe: Dynamic WPF DataGrid Pin
Kevin Marois23-Mar-21 10:58
professionalKevin Marois23-Mar-21 10:58 
Ok, I'm stuck here. I can see rows - no data just the highlight - and no columns.

What am i doing wrong??

XAML
<DataGrid Grid.Row="1"
            AutoGenerateColumns="False"
            ItemsSource="{Binding BidBudgetData.DefaultView}"/>
ViewModel
private DataTable _BidBudgetData;
public DataTable BidBudgetData
{
    get { return _BidBudgetData; }
    set
    {
        if (_BidBudgetData != value)
        {
            _BidBudgetData = value;
            RaisePropertyChanged("BidBudgetData");
        }
    }
}

private void CreateBidBudgetTable()
{
    var bidBudgetData = new DataTable();
    bidBudgetData.Columns.Add("Plan Type", typeof(string));
    bidBudgetData.Columns.Add("Living Sq Ft", typeof(decimal));

    foreach (var planType in ProjectPlanTypeSummaries.OrderBy(x =>x.Plan).ThenBy(x => x.Elevation))
    {
        DataRow row = bidBudgetData.NewRow();
        row["Plan Type"] = $"{planType.Plan}{planType.Elevation}";
        row["Living Sq Ft"] = planType.LivingSqFt;
        bidBudgetData.Rows.Add(row);
    }

    BidBudgetData = bidBudgetData;
    RaisePropertyChanged("BidBudgetData");
}
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

GeneralRe: Dynamic WPF DataGrid Pin
Richard Deeming24-Mar-21 0:13
mveRichard Deeming24-Mar-21 0:13 
GeneralRe: Dynamic WPF DataGrid Pin
Kevin Marois24-Mar-21 7:14
professionalKevin Marois24-Mar-21 7:14 
QuestionWPF with TPL Multithreading Pin
#realJSOP16-Mar-21 7:04
mve#realJSOP16-Mar-21 7:04 
AnswerRe: WPF with TPL Multithreading Pin
Gerry Schmitz16-Mar-21 8:45
mveGerry Schmitz16-Mar-21 8:45 
GeneralRe: WPF with TPL Multithreading Pin
#realJSOP16-Mar-21 10:03
mve#realJSOP16-Mar-21 10:03 
GeneralRe: WPF with TPL Multithreading Pin
Gerry Schmitz16-Mar-21 11:11
mveGerry Schmitz16-Mar-21 11:11 
GeneralRe: WPF with TPL Multithreading Pin
#realJSOP16-Mar-21 11:51
mve#realJSOP16-Mar-21 11:51 
QuestionExpand/Collapse TreeView Nodes on Ctrl+LeftMouse in WPF Pin
ernie_hudds12-Mar-21 5:24
ernie_hudds12-Mar-21 5:24 
AnswerRe: Expand/Collapse TreeView Nodes on Ctrl+LeftMouse in WPF Pin
Gerry Schmitz12-Mar-21 9:13
mveGerry Schmitz12-Mar-21 9:13 
AnswerRe: Expand/Collapse TreeView Nodes on Ctrl+LeftMouse in WPF Pin
lmoelleb15-Mar-21 9:40
lmoelleb15-Mar-21 9:40 
QuestionAvalonDock using AvalonDock.ManagedContent not present in Dirkster.AvalonDock package Pin
sinagot4-Mar-21 2:24
sinagot4-Mar-21 2:24 
AnswerRe: AvalonDock using AvalonDock.ManagedContent not present in Dirkster.AvalonDock package Pin
Gerry Schmitz4-Mar-21 9:24
mveGerry Schmitz4-Mar-21 9:24 
GeneralRe: AvalonDock using AvalonDock.ManagedContent not present in Dirkster.AvalonDock package Pin
sinagot4-Mar-21 11:50
sinagot4-Mar-21 11:50 
QuestionDataGrid Columnm Header Style Pin
Kevin Marois16-Feb-21 15:44
professionalKevin Marois16-Feb-21 15:44 
AnswerRe: DataGrid Columnm Header Style Pin
Gerry Schmitz17-Feb-21 7:14
mveGerry Schmitz17-Feb-21 7:14 
QuestionGridView CellTemplate Pin
#realJSOP13-Feb-21 11:42
mve#realJSOP13-Feb-21 11:42 
AnswerRe: GridView CellTemplate Pin
Gerry Schmitz13-Feb-21 13:50
mveGerry Schmitz13-Feb-21 13:50 

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.