Click here to Skip to main content
15,886,362 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF performance on Windows XP Pin
Gerry Schmitz2-Apr-13 12:38
mveGerry Schmitz2-Apr-13 12:38 
GeneralRe: WPF performance on Windows XP Pin
SledgeHammer012-Apr-13 13:02
SledgeHammer012-Apr-13 13:02 
GeneralRe: WPF performance on Windows XP Pin
Gerry Schmitz2-Apr-13 13:45
mveGerry Schmitz2-Apr-13 13:45 
AnswerRe: WPF performance on Windows XP Pin
Pete O'Hanlon2-Apr-13 12:09
mvePete O'Hanlon2-Apr-13 12:09 
QuestionComboBox in a DataGrid, Binding Problem Pin
shakilahmad1232-Apr-13 1:23
shakilahmad1232-Apr-13 1:23 
QuestionHello All. Pin
caradri1-Apr-13 23:08
caradri1-Apr-13 23:08 
AnswerRe: Hello All. Pin
Kenneth Haugland2-Apr-13 9:21
mvaKenneth Haugland2-Apr-13 9:21 
QuestionData display issue with combo box in wpf data grid Pin
ukraju1-Apr-13 7:31
ukraju1-Apr-13 7:31 
Hi,I am having one problem related to ComboBox of DataGrid. Data is binding but it is not showing in the ComboBox after binding. My xaml code is like below.
<my:DataGridTemplateColumn Header="UsgSrc">
    <my:DataGridTemplateColumn.CellTemplate>
        <DataTemplate>
            <ComboBox Name="cbUsgSrc"  
                      ItemsSource="{Binding Source={StaticResource UsgSrcUOMS}}" 
                      SelectedValue="{Binding Path=UsgSrc}" 
                      SelectedValuePath="UtType" 
                      DisplayMemberPath="UtType">
            </ComboBox>
        </DataTemplate>
    </my:DataGridTemplateColumn.CellTemplate>
</my:DataGridTemplateColumn>


I am assigning the data to combo box in the code behind like below.
C#
<pre lang="c#">
ObjectDataProvider UsageSrcUOMS = null;
UsageSrcUOMS = (ObjectDataProvider)FindResource("UsgSrcUOMS");
UsageSrcUOMS.ObjectInstance = objUtView;
Microsoft.Windows.Controls.DataGridCell cell = obj.GetCell(dgMtrHdr, J, 11);
if (cell != null)
{
ContentPresenter panel = cell.Content as ContentPresenter;
if (panel != null)
{
ComboBox cmbUsUtilit = obj.GetVisualChild<combobox>(panel);
cmbUsUtilit.IsEnabled = true;
if(objUtView!=null)
cmbUsUtilit.ItemsSource = objUtView;

cmbUsUtilit.SelectedIndex=2;
}
}

Please help me why the data is not displaying in the combo box after binding.
AnswerRe: Data display issue with combo box in wpf data grid Pin
Richard MacCutchan1-Apr-13 21:48
mveRichard MacCutchan1-Apr-13 21:48 
QuestionGet File Path from ListView Pin
MumbleB31-Mar-13 3:44
MumbleB31-Mar-13 3:44 
AnswerRe: Get File Path from ListView Pin
Mycroft Holmes31-Mar-13 12:39
professionalMycroft Holmes31-Mar-13 12:39 
GeneralRe: Get File Path from ListView Pin
MumbleB1-Apr-13 0:34
MumbleB1-Apr-13 0:34 
GeneralRe: Get File Path from ListView Pin
Mycroft Holmes1-Apr-13 1:23
professionalMycroft Holmes1-Apr-13 1:23 
GeneralRe: Get File Path from ListView Pin
MumbleB2-Apr-13 9:10
MumbleB2-Apr-13 9:10 
GeneralRe: Get File Path from ListView Pin
Mycroft Holmes2-Apr-13 12:15
professionalMycroft Holmes2-Apr-13 12:15 
GeneralRe: Get File Path from ListView Pin
MumbleB3-Apr-13 7:27
MumbleB3-Apr-13 7:27 
QuestionCollection of User Controls Pin
Mycroft Holmes30-Mar-13 22:44
professionalMycroft Holmes30-Mar-13 22:44 
AnswerRe: Collection of User Controls Pin
SledgeHammer0131-Mar-13 14:48
SledgeHammer0131-Mar-13 14:48 
GeneralRe: Collection of User Controls Pin
Mycroft Holmes31-Mar-13 14:55
professionalMycroft Holmes31-Mar-13 14:55 
GeneralRe: Collection of User Controls Pin
SledgeHammer0131-Mar-13 15:13
SledgeHammer0131-Mar-13 15:13 
GeneralRe: Collection of User Controls Pin
Mycroft Holmes31-Mar-13 15:30
professionalMycroft Holmes31-Mar-13 15:30 
GeneralRe: Collection of User Controls Pin
SledgeHammer0131-Mar-13 15:43
SledgeHammer0131-Mar-13 15:43 
GeneralRe: Collection of User Controls Pin
Mycroft Holmes31-Mar-13 15:59
professionalMycroft Holmes31-Mar-13 15:59 
GeneralRe: Collection of User Controls Pin
SledgeHammer0131-Mar-13 16:20
SledgeHammer0131-Mar-13 16:20 
GeneralRe: Collection of User Controls Pin
Mycroft Holmes31-Mar-13 18:02
professionalMycroft Holmes31-Mar-13 18:02 

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.