Click here to Skip to main content
15,913,941 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to use the IIS of a system Pin
uspatel12-Oct-11 18:56
professionaluspatel12-Oct-11 18:56 
QuestionASP.Net Report Generation Pin
eddieangel12-Oct-11 7:05
eddieangel12-Oct-11 7:05 
AnswerRe: ASP.Net Report Generation Pin
David Mujica12-Oct-11 7:43
David Mujica12-Oct-11 7:43 
GeneralRe: ASP.Net Report Generation Pin
eddieangel12-Oct-11 7:46
eddieangel12-Oct-11 7:46 
QuestionIssue with 401 unauthorized. Double Hop Pin
sheldons12-Oct-11 6:27
sheldons12-Oct-11 6:27 
Questionalignment of controls Pin
jassiedog12-Oct-11 5:43
jassiedog12-Oct-11 5:43 
AnswerRe: alignment of controls Pin
Not Active12-Oct-11 7:00
mentorNot Active12-Oct-11 7:00 
AnswerRe: alignment of controls Pin
Dennis E White13-Oct-11 7:58
professionalDennis E White13-Oct-11 7:58 
AnswerRe: alignment of controls Pin
Morgs Morgan13-Oct-11 19:48
Morgs Morgan13-Oct-11 19:48 
QuestionThe state information is invalid for this page and might be corrupted Pin
uspatel11-Oct-11 22:59
professionaluspatel11-Oct-11 22:59 
QuestionDisable checkbox in gridview Pin
Member 322226411-Oct-11 14:54
Member 322226411-Oct-11 14:54 
AnswerRe: Disable checkbox in gridview Pin
_Tushar Patil11-Oct-11 20:04
_Tushar Patil11-Oct-11 20:04 
AnswerRe: Disable checkbox in gridview Pin
Ali Al Omairi(Abu AlHassan)11-Oct-11 20:09
professionalAli Al Omairi(Abu AlHassan)11-Oct-11 20:09 
I think you should replace the line:
gv =GridView1.SelectedRow;
with
gv = e.Row;

you should make sure it is a DataRow before trying to enter the cells:
if (gv.RowType == DataControlRowType.DataRow)

Also, you should parse the text in gv.Cells[5] to integer or double like:
int.Parse(gv.Cells[5].Text)<=5

the code will be

Charp
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
    GridViewRow gv ;
    gv =e.Row;
    if (gv.RowType == DataControlRowType.DataRow)
    {
        if (gv.Cells[4].Text == "KS" || int.Parse(gv.Cells[5].Text)<=5)
        {
            CheckBox chkDelete = (CheckBox)gv.Cells[0].Controls[0];
            chkDelete.Enabled = false;
        }
    }

}


Good Luck Smile | :)
Help people,so poeple can help you.

Questionaccess to ajax controls on toolbox Pin
Member 821751711-Oct-11 12:17
Member 821751711-Oct-11 12:17 
Questionadd master page to new web form Pin
Member 821751711-Oct-11 4:49
Member 821751711-Oct-11 4:49 
QuestionSiteMapPath does NOT display while the url end with a slash Pin
zhgfsh11-Oct-11 3:36
zhgfsh11-Oct-11 3:36 
Questionhow to create a download feature in asp,net? Pin
John Lao10-Oct-11 17:32
John Lao10-Oct-11 17:32 
AnswerRe: how to create a download feature in asp,net? Pin
Morgs Morgan10-Oct-11 20:58
Morgs Morgan10-Oct-11 20:58 
AnswerRe: how to create a download feature in asp,net? Pin
Not Active11-Oct-11 1:37
mentorNot Active11-Oct-11 1:37 
Questionhow to set the start up page once for all Pin
MalarGayu10-Oct-11 14:59
MalarGayu10-Oct-11 14:59 
AnswerRe: how to set the start up page once for all Pin
Parwej Ahamad10-Oct-11 17:47
professionalParwej Ahamad10-Oct-11 17:47 
GeneralRe: how to set the start up page once for all Pin
MalarGayu10-Oct-11 22:10
MalarGayu10-Oct-11 22:10 
GeneralRe: how to set the start up page once for all Pin
Parwej Ahamad10-Oct-11 22:13
professionalParwej Ahamad10-Oct-11 22:13 
GeneralRe: how to set the start up page once for all Pin
MalarGayu11-Oct-11 11:41
MalarGayu11-Oct-11 11:41 
GeneralRe: how to set the start up page once for all Pin
Parwej Ahamad11-Oct-11 19:41
professionalParwej Ahamad11-Oct-11 19:41 

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.