Click here to Skip to main content
15,913,610 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: emulator wp7 Pin
heba abu ghaleih22 14-May-12 9:39
heba abu ghaleih22 14-May-12 9:39 
Questionpassing data betwen tabitem and datagrid Pin
MemberDotNetting12-May-12 22:09
MemberDotNetting12-May-12 22:09 
AnswerRe: passing data betwen tabitem and datagrid Pin
Pete O'Hanlon13-May-12 1:52
mvePete O'Hanlon13-May-12 1:52 
GeneralRe: passing data betwen tabitem and datagrid Pin
MemberDotNetting13-May-12 7:50
MemberDotNetting13-May-12 7:50 
GeneralRe: passing data betwen tabitem and datagrid Pin
Pete O'Hanlon13-May-12 9:12
mvePete O'Hanlon13-May-12 9:12 
QuestionSQL query = How to get database table name only in to datagrid Pin
LAPEC9-May-12 12:48
LAPEC9-May-12 12:48 
AnswerRe: SQL query = How to get database table name only in to datagrid Pin
Mycroft Holmes9-May-12 14:24
professionalMycroft Holmes9-May-12 14:24 
GeneralRe: SQL query = How to get database table name only in to datagrid Pin
LAPEC10-May-12 0:21
LAPEC10-May-12 0:21 
GeneralRe: SQL query = How to get database table name only in to datagrid Pin
Pete O'Hanlon10-May-12 0:41
mvePete O'Hanlon10-May-12 0:41 
AnswerRe: Textbox Undo Pin
SledgeHammer019-May-12 10:14
SledgeHammer019-May-12 10:14 
GeneralRe: Textbox Undo Pin
SledgeHammer019-May-12 10:32
SledgeHammer019-May-12 10:32 
GeneralRe: Textbox Undo Pin
Pete O'Hanlon9-May-12 10:46
mvePete O'Hanlon9-May-12 10:46 
Questionbind data from dattable with datagrid Pin
MemberDotNetting9-May-12 4:29
MemberDotNetting9-May-12 4:29 
QuestionSave DocumentViewer content as MS Word document Pin
sureshb_079-May-12 1:51
professionalsureshb_079-May-12 1:51 
QuestionResize and Edit Text in wpf Pin
NoufMohd8-May-12 1:17
NoufMohd8-May-12 1:17 
AnswerRe: Resize and Edit Text in wpf Pin
Mycroft Holmes8-May-12 12:29
professionalMycroft Holmes8-May-12 12:29 
Questiontry to add data on wpf DataGridColumn Pin
MemberDotNetting7-May-12 10:55
MemberDotNetting7-May-12 10:55 
AnswerRe: try to add data on wpf DataGridColumn Pin
Mycroft Holmes7-May-12 12:26
professionalMycroft Holmes7-May-12 12:26 
AnswerRe: try to add data on wpf DataGridColumn Pin
Wayne Gaylard7-May-12 20:09
professionalWayne Gaylard7-May-12 20:09 
GeneralRe: try to add data on wpf DataGridColumn Pin
MemberDotNetting7-May-12 23:23
MemberDotNetting7-May-12 23:23 
thnk you, please I tried to use interface: this is the code but it doesn't work
C#
public interface Iimportdata
    {
        DataView GridData { get; set; }
    }




//traitement2--Excel
        private DataView Data = null;
        public DataView GridData
        {    
           get
            {   return Data;
            }
           set
            {
                Data = value;
                NotifyPropertyChanged("GridData");
            }
       }

public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }






  private void btnExcel_Click(object sender, RoutedEventArgs e)
        {
          
            ExcelParser exc = new ExcelParser();
            DataTable dt = exc.GetDataTableExcel(datasource);
          
            Iimportdata imp = Window.GetWindow(this) as Iimportdata;
            imp.GridData = dt.DefaultView;
            gbReceipient.Visibility = Visibility.Visible;
            btnValidate.Visibility = Visibility.Visible;
        }


XAML:

XML
<DataGridTemplateColumn Header="Adress" Width="100" IsReadOnly="True">
                                      <DataGridTemplateColumn.CellTemplate>
                                      <DataTemplate>
                                              <TextBlock Text="{Binding Path=GridData}"/>
                                      </DataTemplate>
                                      </DataGridTemplateColumn.CellTemplate>
                                  </DataGridTemplateColumn>


Frown | :(
QuestionWPF DataGrid cell click Pin
LAPEC7-May-12 9:27
LAPEC7-May-12 9:27 
Questionwpf ritchbox Pin
MemberDotNetting6-May-12 3:41
MemberDotNetting6-May-12 3:41 
AnswerRe: WPF RichTextBox Pin
Wayne Gaylard6-May-12 21:07
professionalWayne Gaylard6-May-12 21:07 
Questionadd wpf user control Pin
MemberDotNetting4-May-12 22:22
MemberDotNetting4-May-12 22:22 
AnswerRe: add wpf user control Pin
Abhinav S5-May-12 21:40
Abhinav S5-May-12 21:40 

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.