Click here to Skip to main content
15,884,353 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Pete O'Hanlon7-May-09 22:30
mvePete O'Hanlon7-May-09 22:30 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Philipp Sumi7-May-09 22:45
Philipp Sumi7-May-09 22:45 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Pete O'Hanlon7-May-09 23:56
mvePete O'Hanlon7-May-09 23:56 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Philipp Sumi8-May-09 0:18
Philipp Sumi8-May-09 0:18 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Pete O'Hanlon8-May-09 2:55
mvePete O'Hanlon8-May-09 2:55 
QuestionWPF(Show data of type Varbinary in form of image in GridViewColumn) Pin
drcmomo5-May-09 9:09
drcmomo5-May-09 9:09 
AnswerRe: WPF(Show data of type Varbinary in form of image in GridViewColumn) Pin
Pete O'Hanlon5-May-09 9:36
mvePete O'Hanlon5-May-09 9:36 
GeneralRe: WPF(Show data of type Varbinary in form of image in GridViewColumn) Pin
drcmomo5-May-09 10:12
drcmomo5-May-09 10:12 
HI

My problem is to show in a column of my ListView of pictures after conversion ConvertImage (byteBLOBData); I also think that problem comes can be of my source code XAML.
If you can look at my code please



private void RemplirListeUtilisateur()
{
dt_ListeUtilisateur.Clear();
cmd.CommandText = "SELECT U.IDUTILISATEUR,U.MyImage, U.NOMUTILISATEUR,U.PRENOMUTILISATEUR,U.ADRESSE,U.CODEPOSTALE,U.TELEPHONE,P.NOMPAYS AS PAYS,D.NOMDEPARTEMENT AS DEPARTEMENT FROM UTILISATEUR U INNER JOIN PAYS P ON U.IDPAYS = P.IDPAYS INNER JOIN DEPARTEMENT D ON U.IDDPEPARTEMENT = D.IDDEPARTEMENT";
sqlDa = new SqlDataAdapter();
sqlDa.SelectCommand = cmd;

try
{
sqlDa.Fill(dt_ListeUtilisateur);
DataTable Temp = new DataTable();

Temp.Columns.Add("IDUTILISATEUR");
Temp.Columns.Add("NOMUTILISATEUR");
Temp.Columns.Add("PRENOMUTILISATEUR");
Temp.Columns.Add("ADRESSE");
Temp.Columns.Add("CODEPOSTALE");
Temp.Columns.Add("TELEPHONE");
Temp.Columns.Add("PAYS");
Temp.Columns.Add("DEPARTEMENT");
Temp.Columns.Add("MyIMAGE");

for (int Index = 0; Index < dt_ListeUtilisateur.Rows.Count; Index++)
{
DataRow MyDataRow = Temp.NewRow();

MyDataRow["IDUTILISATEUR"] = dt_ListeUtilisateur.Rows[Index] ["IDUTILISATEUR"].ToString();
MyDataRow["NOMUTILISATEUR"] = dt_ListeUtilisateur.Rows[Index]["NOMUTILISATEUR"].ToString();
MyDataRow["PRENOMUTILISATEUR"] = dt_ListeUtilisateur.Rows[Index]["PRENOMUTILISATEUR"].ToString();
MyDataRow["ADRESSE"] = dt_ListeUtilisateur.Rows[Index]["ADRESSE"].ToString();
MyDataRow["CODEPOSTALE"] = dt_ListeUtilisateur.Rows[Index]["CODEPOSTALE"].ToString();
MyDataRow["TELEPHONE"] = dt_ListeUtilisateur.Rows[Index]["TELEPHONE"].ToString();
MyDataRow["PAYS"] = dt_ListeUtilisateur.Rows[Index]["PAYS"].ToString();
MyDataRow["DEPARTEMENT"] = dt_ListeUtilisateur.Rows[Index]["DEPARTEMENT"].ToString();
int c = dt_ListeUtilisateur.Rows.Count;
if ((dt_ListeUtilisateur.Rows[Index]["MyImage"].ToString() != String.Empty) || (dt_ListeUtilisateur.Rows[Index]["MyImage"].ToString().Equals("null")))
{
Byte[] byteBLOBData = new Byte[0];
byteBLOBData = (Byte[])(dt_ListeUtilisateur.Rows[c - 1]["MyImage"]);
MemoryStream stmBLOBData = new MemoryStream(byteBLOBData);
ConvertImage(byteBLOBData);
MyDataRow["MyImage"] = images;

}

Temp.Rows.Add(MyDataRow);
}

lstUtilisateur.ItemsSource = Temp.DefaultView;

Code XAML :
<gridviewcolumn header="Image" displaymemberbinding="{Binding Path=MyImage}">
GeneralRe: WPF(Show data of type Varbinary in form of image in GridViewColumn) Pin
drcmomo5-May-09 10:19
drcmomo5-May-09 10:19 
QuestionHow to access silverlight control properties from aspx page Pin
wantToCode5-May-09 1:46
wantToCode5-May-09 1:46 
AnswerRe: How to access silverlight control properties from aspx page Pin
Ray Cassick5-May-09 2:29
Ray Cassick5-May-09 2:29 
QuestionRe: How to access silverlight control properties from aspx page Pin
wantToCode12-May-09 19:42
wantToCode12-May-09 19:42 
AnswerRe: How to access silverlight control properties from aspx page Pin
Ray Cassick13-May-09 2:25
Ray Cassick13-May-09 2:25 
QuestionHow to convert a handle to a wpf window? Pin
Eric Vonjacson5-May-09 0:55
Eric Vonjacson5-May-09 0:55 
AnswerRe: How to convert a handle to a wpf window? Pin
Mark Salsbery5-May-09 5:29
Mark Salsbery5-May-09 5:29 
QuestionWPF RichTextBox - Appending Colored text Pin
Harvey Saayman4-May-09 22:08
Harvey Saayman4-May-09 22:08 
AnswerRe: WPF RichTextBox - Appending Colored text Pin
Philipp Sumi4-May-09 22:13
Philipp Sumi4-May-09 22:13 
GeneralRe: WPF RichTextBox - Appending Colored text Pin
Harvey Saayman4-May-09 23:14
Harvey Saayman4-May-09 23:14 
QuestionWPF(add a message or text in the xmal elements like ellipse at run time in windows application. [modified] Pin
Ch.Gayatri Subudhi4-May-09 18:34
Ch.Gayatri Subudhi4-May-09 18:34 
AnswerRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Philipp Sumi4-May-09 20:35
Philipp Sumi4-May-09 20:35 
GeneralRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Ch.Gayatri Subudhi4-May-09 21:20
Ch.Gayatri Subudhi4-May-09 21:20 
GeneralRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Philipp Sumi4-May-09 21:22
Philipp Sumi4-May-09 21:22 
GeneralRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Ch.Gayatri Subudhi4-May-09 21:33
Ch.Gayatri Subudhi4-May-09 21:33 
GeneralRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Philipp Sumi4-May-09 21:38
Philipp Sumi4-May-09 21:38 
GeneralRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Ch.Gayatri Subudhi4-May-09 21:42
Ch.Gayatri Subudhi4-May-09 21:42 

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.