Click here to Skip to main content
15,880,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: what is the meaning of this? Syntax error in UPDATE statement. Pin
PIEBALDconsult17-Mar-13 10:45
mvePIEBALDconsult17-Mar-13 10:45 
AnswerRe: what is the meaning of this? Syntax error in UPDATE statement. Pin
Abhinav S18-Mar-13 6:37
Abhinav S18-Mar-13 6:37 
QuestionConnection between two forms in a project Pin
coolvibhu16-Mar-13 6:18
coolvibhu16-Mar-13 6:18 
AnswerRe: Connection between two forms in a project Pin
NotPolitcallyCorrect16-Mar-13 6:36
NotPolitcallyCorrect16-Mar-13 6:36 
AnswerRe: Connection between two forms in a project Pin
OriginalGriff16-Mar-13 6:40
mveOriginalGriff16-Mar-13 6:40 
QuestionListBox datasource is not updated on first click Pin
zulfakar16-Mar-13 3:24
zulfakar16-Mar-13 3:24 
AnswerRe: ListBox datasource is not updated on first click Pin
Jegan Thiyagesan16-Mar-13 13:31
Jegan Thiyagesan16-Mar-13 13:31 
GeneralRe: ListBox datasource is not updated on first click Pin
zulfakar17-Mar-13 8:24
zulfakar17-Mar-13 8:24 
this is what the fill do..anyway just to let ya know that i also call this on form_load

C#
private void Fill()
{
    string strSQL = "SELECT * FROM Item ORDER BY ITEM";
    OleDbDataAdapter myCmd = new OleDbDataAdapter(strSQL, GetConnection());
    DataSet dtSet = new DataSet();
    myCmd.Fill(dtSet, "Item");
    DataTable dTable = dtSet.Tables[0];
    foreach (DataRow dtRow in dTable.Rows)
    {
        _productlist.Add(new PRODUCTLIST() { ID = dtRow["ID"].ToString(), ITEM = dtRow["ITEM"].ToString(), ITEM_DESC = dtRow["ITEM_DESC"].ToString() });
    }
    listBox1.DisplayMember = "ITEM";
    listBox1.DataSource = _productlist;
    listBox1.ValueMember = "ID";
    GetConnection().Close();
}

GeneralRe: ListBox datasource is not updated on first click Pin
Jegan Thiyagesan18-Mar-13 3:50
Jegan Thiyagesan18-Mar-13 3:50 
QuestionExporting Gridview with fixed number of rows on each page Pin
AlexRusso16-Mar-13 1:18
AlexRusso16-Mar-13 1:18 
AnswerRe: Exporting Gridview with fixed number of rows on each page Pin
Eddy Vluggen16-Mar-13 12:06
professionalEddy Vluggen16-Mar-13 12:06 
GeneralRe: Exporting Gridview with fixed number of rows on each page Pin
AlexRusso18-Mar-13 0:57
AlexRusso18-Mar-13 0:57 
GeneralRe: Exporting Gridview with fixed number of rows on each page Pin
Eddy Vluggen18-Mar-13 1:29
professionalEddy Vluggen18-Mar-13 1:29 
QuestionFilesystemwatcher causes exception. Pin
leone15-Mar-13 6:32
leone15-Mar-13 6:32 
AnswerRe: Filesystemwatcher causes exception. Pin
Jibesh15-Mar-13 6:53
professionalJibesh15-Mar-13 6:53 
GeneralRe: Filesystemwatcher causes exception. Pin
leone15-Mar-13 11:03
leone15-Mar-13 11:03 
GeneralRe: Filesystemwatcher causes exception. Pin
Jibesh15-Mar-13 11:09
professionalJibesh15-Mar-13 11:09 
GeneralRe: Filesystemwatcher causes exception. Pin
Dave Kreskowiak15-Mar-13 12:44
mveDave Kreskowiak15-Mar-13 12:44 
AnswerRe: Filesystemwatcher causes exception. Pin
Eddy Vluggen15-Mar-13 7:47
professionalEddy Vluggen15-Mar-13 7:47 
QuestionC# file exists on network drive Pin
classy_dog15-Mar-13 2:44
classy_dog15-Mar-13 2:44 
AnswerRe: C# file exists on network drive Pin
s_magus15-Mar-13 3:07
s_magus15-Mar-13 3:07 
GeneralRe: C# file exists on network drive Pin
Richard MacCutchan15-Mar-13 7:19
mveRichard MacCutchan15-Mar-13 7:19 
GeneralRe: C# file exists on network drive Pin
Eddy Vluggen15-Mar-13 7:48
professionalEddy Vluggen15-Mar-13 7:48 
GeneralRe: C# file exists on network drive Pin
Richard MacCutchan15-Mar-13 7:56
mveRichard MacCutchan15-Mar-13 7:56 
GeneralRe: C# file exists on network drive Pin
Eddy Vluggen15-Mar-13 8:07
professionalEddy Vluggen15-Mar-13 8:07 

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.