Click here to Skip to main content
16,006,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: Access denied Pin
jon-804-May-09 19:20
professionaljon-804-May-09 19:20 
GeneralRe: Access denied Pin
Dave Kreskowiak5-May-09 3:51
mveDave Kreskowiak5-May-09 3:51 
AnswerRe: Access denied Pin
Member 41879984-May-09 20:00
Member 41879984-May-09 20:00 
GeneralRe: Access denied Pin
Dave Kreskowiak5-May-09 3:55
mveDave Kreskowiak5-May-09 3:55 
QuestionListView Picture Pin
drcmomo4-May-09 5:11
drcmomo4-May-09 5:11 
AnswerRe: ListView Picture Pin
Henry Minute4-May-09 6:25
Henry Minute4-May-09 6:25 
GeneralRe: ListView Picture Pin
drcmomo4-May-09 8:28
drcmomo4-May-09 8:28 
GeneralRe: ListView Picture Pin
drcmomo4-May-09 8:29
drcmomo4-May-09 8:29 
Good morning,
Excuse me, I am French, I speak the language badly Englishman. My question is the following:
I have one banks on look at foundation of data which contains columns Name, Forename, Photograph
I make a request SQL which is the following:

cmd.CommandText ="SELECT NAME, FIRSTNAME, PHOTO FROM USER";

I fill ListView in the following way:
sqlDa = new SqlDataAdapter();
sqlDa.SelectCommand = cmd;
try
{
sqlDa.Fill(dt_ListeUtilisateur);
if (dt_ListeUtilisateur.Rows.Count>0)
{

lstUtilisateur.DataContext = dt_ListeUtilisateur.DefaultView;

}} //lstUtilisateur = ListView
XAML :
<listview margin="7,10,15,48" name="lstUtilisateur" itemssource="{Binding}" borderbrush="{x:Null}" listboxitem.selected="lstUtilisateur_Selected" selectionchanged="lstUtilisateur_SelectionChanged">
<listview.view>
<gridview>
<gridviewcolumn header="NAME" displaymemberbinding="{Binding Path=NAME}" selector.isselected="True">
<gridviewcolumn header="FIRSTNAME" displaymemberbinding="{Binding Path=FIRSTNAME}">
<gridviewcolumn header="Picture" width="100" displaymemberbinding="{Binding Path=MyImage}">
<gridviewcolumn.celltemplate>
<datatemplate>





In the column Picture of my ListView, I have unfortunately not the photograph but Byte [] Array you can help me please.
GeneralRe: ListView Picture Pin
Henry Minute4-May-09 8:46
Henry Minute4-May-09 8:46 
Questionconvert uint to byte[] Pin
Huisheng Chen4-May-09 4:54
Huisheng Chen4-May-09 4:54 
AnswerRe: convert uint to byte[] Pin
harold aptroot4-May-09 4:59
harold aptroot4-May-09 4:59 
GeneralRe: convert uint to byte[] Pin
Huisheng Chen4-May-09 5:03
Huisheng Chen4-May-09 5:03 
GeneralRe: convert uint to byte[] Pin
harold aptroot4-May-09 5:10
harold aptroot4-May-09 5:10 
GeneralRe: convert uint to byte[] Pin
Huisheng Chen4-May-09 5:20
Huisheng Chen4-May-09 5:20 
GeneralRe: convert uint to byte[] Pin
harold aptroot4-May-09 5:31
harold aptroot4-May-09 5:31 
GeneralRe: convert uint to byte[] Pin
Alan N4-May-09 5:21
Alan N4-May-09 5:21 
GeneralRe: convert uint to byte[] Pin
harold aptroot4-May-09 5:30
harold aptroot4-May-09 5:30 
QuestionHow can I use timers in BHO? Pin
svt gdwl4-May-09 4:45
svt gdwl4-May-09 4:45 
Question[newbie] err Pin
jon-804-May-09 4:39
professionaljon-804-May-09 4:39 
AnswerRe: [newbie] err Pin
Jimmanuel4-May-09 4:59
Jimmanuel4-May-09 4:59 
QuestionHow to Detect Advertisement from a Video file Pin
pravat_SABAT4-May-09 3:31
pravat_SABAT4-May-09 3:31 
AnswerRe: How to Detect Advertisement from a Video file Pin
Dave Kreskowiak4-May-09 5:13
mveDave Kreskowiak4-May-09 5:13 
QuestionDate Difference in Datagridview [modified] Pin
nagendra.vk4-May-09 3:23
nagendra.vk4-May-09 3:23 
AnswerRe: Date Difference in Datagridview Pin
stancrm4-May-09 3:45
stancrm4-May-09 3:45 
Questionsql error Pin
michaelgr14-May-09 3:08
michaelgr14-May-09 3:08 

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.