Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to access asp button of gridview

protected void gvPayemenDetailNew_RowDataBound(object sender, 
GridViewRowEventArgs e)
{
foreach (GridViewRow row in gvPayemenDetailNew.Rows)
{
    if (row.RowType == DataControlRowType.DataRow)
    {
        Button btn = row.FindControl("btnGenNew") as Button;
        if (PayStatus == "Approved")
        {
            btn.Enabled = true;
        }
    }
}            
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: select range in list c# 
Csharp :: c# static 
Csharp :: drop down list razor example 
Csharp :: c# const 
Csharp :: sieve 
Csharp :: how to cut a string in c# 
Csharp :: How to make a simple console select screen using C# ReadKey 
Csharp :: double parse csharp removes decimal 
Csharp :: select specific columns from datatable in c# using lambda 
Csharp :: how to check type in c# 
Csharp :: Match one of 1, 2, x or X, or nothing 
Csharp :: c# list keyvaluepair update value 
Csharp :: docker Test a Connection using Curl 
Csharp :: c# json 
Csharp :: list array 
Csharp :: int model property shows 0 in textbox .net core 
Csharp :: c# object is enum 
Csharp :: c# integer part of float 
Csharp :: access label from another class c# 
Csharp :: c# short to int 
Csharp :: use or in shell script 
Csharp :: how to stream video from vlc in c# 
Csharp :: c# decimal 4 casas decimais 
Csharp :: net user add ne user windows 10 
Csharp :: web.config customerrors not working 
Csharp :: rigidbody.velocity.magnitude 
Csharp :: long string c# 
Csharp :: ef core add OnModelCreating foreign key 
Csharp :: c# linq join mutiple 
Csharp :: excel rows count 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =