Click here to Skip to main content
16,021,041 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to make label font auto fit Pin
stevenlei11-Apr-12 4:44
stevenlei11-Apr-12 4:44 
GeneralRe: How to make label font auto fit Pin
Pete O'Hanlon11-Apr-12 5:56
mvePete O'Hanlon11-Apr-12 5:56 
AnswerRe: How to make label font auto fit Pin
Ravi Bhavnani11-Apr-12 18:49
professionalRavi Bhavnani11-Apr-12 18:49 
QuestionDropdown list question Pin
R@vuri10-Apr-12 19:03
R@vuri10-Apr-12 19:03 
AnswerRe: Dropdown list question Pin
Abhinav S10-Apr-12 19:37
Abhinav S10-Apr-12 19:37 
AnswerRe: Dropdown list question Pin
V.10-Apr-12 20:29
professionalV.10-Apr-12 20:29 
GeneralC# code Pin
R@vuri10-Apr-12 17:50
R@vuri10-Apr-12 17:50 
AnswerRe: C# code Pin
Karthik Harve10-Apr-12 18:09
professionalKarthik Harve10-Apr-12 18:09 
try this javascript function

JavaScript
//cntrl- ID of the parent Check box
//grd - Cliend ID of the HTML Table or GridView in which all the check boxes 
//      are present
// indCat - 1 or 2 indicates call from parent or child


function SelectAll(cntrl,grd,indCat)
{
    var grdComp = document.getElementById(grd);          
    
    if(indCat == '1')    
    {
        for(i=1;i<=grdComp.getElementsByTagName('input').length-1;i++)
        {
            grdComp.getElementsByTagName('input')[i].checked = cntrl.checked;
        }
    }
    else if(indCat == '2')
    { 
        var chkInd = true;
        for(i=1;i<=grdComp.getElementsByTagName('input').length-1;i++)
        {                 
            if(grdComp.getElementsByTagName('input')[i].checked == false)
            {
                chkInd = false;
            }                    
        }
        grdComp.getElementsByTagName('input')[0].checked = chkInd;             
    }
}

hope this helps
with regards
Karthik Harve

GeneralRe: C# code Pin
R@vuri10-Apr-12 18:50
R@vuri10-Apr-12 18:50 
GeneralRe: C# code Pin
Abhinav S10-Apr-12 19:39
Abhinav S10-Apr-12 19:39 
QuestionHow to make a new MDI child form maximum size? Pin
fantasy121510-Apr-12 15:42
fantasy121510-Apr-12 15:42 
AnswerRe: How to make a new MDI child form maximum size? Pin
Karthik Harve10-Apr-12 18:17
professionalKarthik Harve10-Apr-12 18:17 
GeneralRe: How to make a new MDI child form maximum size? Pin
fantasy121510-Apr-12 22:56
fantasy121510-Apr-12 22:56 
QuestionList Box Sudden Exit On Selection Pin
PDTUM10-Apr-12 13:33
PDTUM10-Apr-12 13:33 
AnswerRe: List Box Sudden Exit On Selection Pin
Richard Andrew x6410-Apr-12 14:01
professionalRichard Andrew x6410-Apr-12 14:01 
AnswerRe: List Box Sudden Exit On Selection Pin
Luc Pattyn10-Apr-12 15:35
sitebuilderLuc Pattyn10-Apr-12 15:35 
AnswerRe: List Box Sudden Exit On Selection Pin
PDTUM11-Apr-12 5:52
PDTUM11-Apr-12 5:52 
AnswerRe: List Box Sudden Exit On Selection Pin
BobJanova10-Apr-12 23:21
BobJanova10-Apr-12 23:21 
QuestionC# App to/from MetaTrader 4 Pin
iltallman10-Apr-12 12:28
iltallman10-Apr-12 12:28 
QuestionHow I can isolate a Keyboard in the operative system? Pin
tsw198510-Apr-12 7:49
tsw198510-Apr-12 7:49 
AnswerRe: How I can isolate a Keyboard in the operative system? Pin
Dave Kreskowiak10-Apr-12 8:11
mveDave Kreskowiak10-Apr-12 8:11 
GeneralRe: How I can isolate a Keyboard in the operative system? Pin
tsw198510-Apr-12 10:05
tsw198510-Apr-12 10:05 
GeneralRe: How I can isolate a Keyboard in the operative system? Pin
Dave Kreskowiak10-Apr-12 10:24
mveDave Kreskowiak10-Apr-12 10:24 
GeneralRe: How I can isolate a Keyboard in the operative system? Pin
tsw198510-Apr-12 10:45
tsw198510-Apr-12 10:45 
GeneralRe: How I can isolate a Keyboard in the operative system? Pin
PIEBALDconsult10-Apr-12 11:37
mvePIEBALDconsult10-Apr-12 11:37 

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.