Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi
have datagrid in that datagrid hyperlink is there.when am click the hyperlink it will comes the TabControl.The hyperlink click tabcontrol comes am using RowDetailsTemplate.In that TabControl Two Tabitems are there in one Tabitem Listview DataBinding.Am using LoadingRowsDetails Event am using in Datagrid in that event am writing ListView DataBinding Dataset will come but the result will not show in listview.
I wrote like this please check this one in XAML file


HTML
<tabitem style="{StaticResource TabItemStyle2}" header="Logs" fontfamily="Century Gothic" name="LogsTab">
  <grid>
   <listview name="lstlogs" horizontalcontentalignment="Stretch" itemssource="{Binding Path=FullMessage}" fontweight="Normal" margin="4" fontfamily="Tahoma" fontsize="12" width="790" height="125" borderbrush="Cyan" borderthickness="0.5">
        <listview.view>
             <gridview>
                 <gridviewcolumn displaymemberbinding="{Binding Path=FullMessage}" header="FullMessage" />
             </gridview>
        </listview.view>
    </listview>
   </grid>
</tabitem>


In under LoadingRowsDetails Event

C#
private void gridAllOrds_LoadingRowDetails(object sender, DataGridRowDetailsEventArgs e)
{
    procedureCall.CompanyCode = txtCompCode.Text;
    DataSet dsLogs = procedureCall.getFullMessage();
    lstlogs.ItemsSource = dsLogs.Tables[0].DefaultView;
}


please check this what am doing wrong

Thanks
@Lakshmi
Posted
Updated 12-Apr-11 18:49pm
v3
Comments
Wild-Programmer 13-Apr-11 0:49am    
Edited for readability.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900