Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
QuestionGenerics - casting int/double to <t></t> Pin
devvvy24-Jan-09 17:24
devvvy24-Jan-09 17:24 
AnswerRe: Generics - casting int/double to Pin
DaveyM6924-Jan-09 22:19
professionalDaveyM6924-Jan-09 22:19 
AnswerRe: Generics - casting int/double to Pin
S. Senthil Kumar24-Jan-09 22:54
S. Senthil Kumar24-Jan-09 22:54 
GeneralRe: Generics - casting int/double to Pin
devvvy25-Jan-09 14:12
devvvy25-Jan-09 14:12 
AnswerRe: Generics - casting int/double to Pin
DaveyM6924-Jan-09 22:57
professionalDaveyM6924-Jan-09 22:57 
GeneralRe: Generics - casting int/double to Pin
devvvy25-Jan-09 14:10
devvvy25-Jan-09 14:10 
GeneralRe: Generics - casting int/double to Pin
DaveyM6926-Jan-09 0:15
professionalDaveyM6926-Jan-09 0:15 
Questiondata gridview problem Pin
bfis10813724-Jan-09 14:01
bfis10813724-Jan-09 14:01 
For whatever reason, when I try to set the value of the DatGridView, it doesn't stick. I have been wrecking by brain over why this is Here is my code

Basically here I am just building the data into my data gridview and then since they will be editing I want the amounts to be loaded into the dgv which is what PopulateList() does.

private void bookList_Load(object sender, EventArgs e)
        {
            BLL = new BooksBLL("C");            
            dataGridView1.DataSource = BLL.allBooks();
            if (isEdit)
            {
                PopulateList();
            }                       
        }

private void PopulateList()
        {
            foreach (OrderedBook ob in order.MyOrderedBooksCollection)
            {
                for (int i = 0; i < dataGridView1.Rows.Count; i++)
                {
                    if (ob.BookCode.ToString() == dataGridView1.Rows[i].Cells[2].Value.ToString())
                        if (ob.CopiesOrdered > 0)
                            dataGridView1.Rows[i].Cells[0].Value = ob.CopiesOrdered.ToString();
                }
            }
        }


Now the interesting thing is that the value property hold and then somehow disappears when the form is loading because when i check the value immediately after a button is pressed without touching anything, it is already null. Note that the dgv works fine other than the fact that the Populate list feature won't load the values.
AnswerRe: data gridview problem Pin
paas25-Jan-09 6:17
paas25-Jan-09 6:17 
QuestionCan any one help please? Pin
Member 284246824-Jan-09 13:52
Member 284246824-Jan-09 13:52 
AnswerRe: Can any one help please? Pin
Not Active24-Jan-09 16:52
mentorNot Active24-Jan-09 16:52 
AnswerRe: Can any one help please? Pin
Christian Graus25-Jan-09 0:44
protectorChristian Graus25-Jan-09 0:44 
AnswerRe: Can any one help please? Pin
Guffa25-Jan-09 2:37
Guffa25-Jan-09 2:37 
GeneralRe: Can any one help please? Pin
NikoTanghe26-Jan-09 3:44
NikoTanghe26-Jan-09 3:44 
GeneralRe: Can any one help please? Pin
Guffa26-Jan-09 3:49
Guffa26-Jan-09 3:49 
QuestionGet html from url Pin
macsheriff24-Jan-09 8:00
macsheriff24-Jan-09 8:00 
AnswerRe: Get html from url Pin
Guffa24-Jan-09 8:44
Guffa24-Jan-09 8:44 
GeneralRe: Get html from url Pin
macsheriff24-Jan-09 9:03
macsheriff24-Jan-09 9:03 
GeneralRe: Get html from url Pin
Guffa24-Jan-09 11:42
Guffa24-Jan-09 11:42 
GeneralRe: Get html from url Pin
macsheriff25-Jan-09 4:19
macsheriff25-Jan-09 4:19 
GeneralRe: Get html from url Pin
Guffa25-Jan-09 13:57
Guffa25-Jan-09 13:57 
Questionadd a row to tableLayoutPanel at runtime VS 2005 Pin
lcm124-Jan-09 6:29
lcm124-Jan-09 6:29 
AnswerRe: add a row to tableLayoutPanel at runtime VS 2005 Pin
DaveyM6924-Jan-09 7:03
professionalDaveyM6924-Jan-09 7:03 
QuestionHow to make BEEP in WinCE ? Pin
E_Gold24-Jan-09 5:39
E_Gold24-Jan-09 5:39 
AnswerRe: How to make BEEP in WinCE ? Pin
Wendelius24-Jan-09 5:47
mentorWendelius24-Jan-09 5:47 

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.