Skip to main content

Hi,

i have this in c#:

            DataGrid grid = sender as DataGrid; 
            DataGridRow selectedRow = grid.ItemContainerGenerator.ContainerFromItem(grid.SelectedItem) as DataGridRow;
            selectedRow.FontWeight = FontWeights.Bold;

What is this in Visual Cobol Code?

Best Regards

Bernd

Hi,

i have this in c#:

            DataGrid grid = sender as DataGrid; 
            DataGridRow selectedRow = grid.ItemContainerGenerator.ContainerFromItem(grid.SelectedItem) as DataGridRow;
            selectedRow.FontWeight = FontWeights.Bold;

What is this in Visual Cobol Code?

Best Regards

Bernd

Something like this:

    declare mygrid as type DataGrid = sender as type DataGrid
    declare selectedRow as type DataGridRow = mygrid::ItemContainerGenerator::ContainerFromItem(mygrid::SelectedItem) as type DataGridRow
    set selectedRow::FontWeight = type FontWeights::Bold


Hi,

i have this in c#:

            DataGrid grid = sender as DataGrid; 
            DataGridRow selectedRow = grid.ItemContainerGenerator.ContainerFromItem(grid.SelectedItem) as DataGridRow;
            selectedRow.FontWeight = FontWeights.Bold;

What is this in Visual Cobol Code?

Best Regards

Bernd

So far so godd :-)

Now i Need the Text of selected Item...

Have you any Idea?

Best Regards

Bernd


Hi,

i have this in c#:

            DataGrid grid = sender as DataGrid; 
            DataGridRow selectedRow = grid.ItemContainerGenerator.ContainerFromItem(grid.SelectedItem) as DataGridRow;
            selectedRow.FontWeight = FontWeights.Bold;

What is this in Visual Cobol Code?

Best Regards

Bernd

Something like:

    mygrid.SelectedItem.Cells[1].Text