Click here to Skip to main content
15,894,410 members
Home / Discussions / C#
   

C#

 
GeneralRe: Mergeing On-Click events in Code-Behind Pin
imnotso#9-Jul-08 3:10
imnotso#9-Jul-08 3:10 
QuestionGetting machinename and their IP of a Lan [modified] Pin
Mogaambo9-Jul-08 0:34
Mogaambo9-Jul-08 0:34 
AnswerRe: Getting machinename and their IP of a Lan Pin
leppie9-Jul-08 2:00
leppie9-Jul-08 2:00 
GeneralRe: Getting machinename and their IP of a Lan Pin
Mogaambo9-Jul-08 2:47
Mogaambo9-Jul-08 2:47 
Questioncan not load mscorwks.dll? Pin
George_George9-Jul-08 0:11
George_George9-Jul-08 0:11 
AnswerRe: can not load mscorwks.dll? Pin
leppie9-Jul-08 1:31
leppie9-Jul-08 1:31 
GeneralRe: can not load mscorwks.dll? Pin
George_George9-Jul-08 22:00
George_George9-Jul-08 22:00 
QuestionDatagridview Pin
benjamin yap8-Jul-08 23:48
benjamin yap8-Jul-08 23:48 
Hi, i got a datagridview and the column ID 6 is a column which shows the price and columnID 0 have a checkbox.

How do i calculate the price when the check box is ticked or unticked.


I tried at a timer with interval of 1 second to check

private void timeCountPrice_Tick(object sender, EventArgs e)
{
    double price = 0.0;
    foreach (DataGridViewRow dgw in dataGridProduct.Rows)
    {
        DataGridViewCheckBoxCell datacell = dgw.Cells[0] as DataGridViewCheckBoxCell;

        try
        {
            if ((bool)datacell.Value == true)
            {

                price += Convert.ToDouble(dgw.Cells[6].Value.ToString());
                lblTotalPrice.Text = "Total Price : $ " + price;
            }
        }
        catch (Exception exc)
        {
        }
    }
}


But it dont seems to work
AnswerRe: Datagridview Pin
leppie9-Jul-08 0:07
leppie9-Jul-08 0:07 
GeneralRe: Datagridview Pin
benjamin yap9-Jul-08 0:34
benjamin yap9-Jul-08 0:34 
AnswerRe: Datagridview Pin
benjymous9-Jul-08 1:30
benjymous9-Jul-08 1:30 
GeneralRe: Datagridview Pin
benjamin yap9-Jul-08 2:02
benjamin yap9-Jul-08 2:02 
QuestionGrid Combo Un-Select Pin
Syed Shahid Hussain8-Jul-08 23:36
Syed Shahid Hussain8-Jul-08 23:36 
QuestionCombobox problem Pin
Vibin Venugopal8-Jul-08 23:30
Vibin Venugopal8-Jul-08 23:30 
AnswerRe: Combobox problem Pin
Gareth H8-Jul-08 23:52
Gareth H8-Jul-08 23:52 
GeneralRe: Combobox problem Pin
Vibin Venugopal9-Jul-08 0:55
Vibin Venugopal9-Jul-08 0:55 
GeneralRe: Combobox problem Pin
Kjetil Svendsen9-Jul-08 2:34
Kjetil Svendsen9-Jul-08 2:34 
AnswerRe: Combobox problem Pin
Vimalsoft(Pty) Ltd9-Jul-08 3:02
professionalVimalsoft(Pty) Ltd9-Jul-08 3:02 
QuestionHow to detect all usb device removal? Pin
lovnin8-Jul-08 23:12
lovnin8-Jul-08 23:12 
QuestionVirtual memory problem Pin
B!Z8-Jul-08 22:25
B!Z8-Jul-08 22:25 
AnswerRe: Virtual memory problem Pin
leppie8-Jul-08 22:35
leppie8-Jul-08 22:35 
AnswerRe: Virtual memory problem Pin
S. Senthil Kumar8-Jul-08 23:03
S. Senthil Kumar8-Jul-08 23:03 
AnswerRe: Virtual memory problem Pin
Alan Balkany9-Jul-08 4:55
Alan Balkany9-Jul-08 4:55 
QuestionWhats wrong with DebuggerDisplay in Visual Studio 2008 Pin
MarkPhB8-Jul-08 22:05
MarkPhB8-Jul-08 22:05 
AnswerRe: Whats wrong with DebuggerDisplay in Visual Studio 2008 Pin
leppie8-Jul-08 22:32
leppie8-Jul-08 22:32 

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.