Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WpfBrowserApplication datagrid tatatemplete column

$
0
0

good afternoon

On the pagetheredatagrid.I fill itfrom database.There isa calculated columnthatI readin a variable.
If this column is0, thecellis displayed in thepicture witha red cross, otherwise the green check mark.

The fieldwith the pictureis not associatedwith a set ofdata from the databaseand added to theconstructoras aDataGridTemplateColumn

The value ofthe columnI get0or1in the following manner

 Dim drv As System.Data.DataRowView = CType(Me.TestDataGrid.SelectedItem, System.Data.DataRowView)
        Dim d
              d = drv.Item(1).ToString()

how to change theimageaccording to0or1


thanks for the help


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>