Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

gridview edit update delete in asp.net textbox size

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if ((e.Row.RowState & DataControlRowState.Edit) > 0)
            {
                TextBox tb = (TextBox)e.Row.Cells[5].Controls[0];
                tb.Width = 40;
                TextBox tb1 = (TextBox)e.Row.Cells[6].Controls[0];
                tb1.Width = 60;
                TextBox tb2 = (TextBox)e.Row.Cells[7].Controls[0];
                tb2.Width = 60;
            }
        }
Comment

PREVIOUS NEXT
Code Example
Csharp :: C# Associativity of Operators 
Csharp :: log4net.dll 
Csharp :: access form in a folder C# 
Csharp :: compare 0001/01/01 in c# 
Csharp :: como ordenar dados na gridview c# 
Csharp :: PUN 2 Network Transform View Jittery Movement 
Csharp :: initialization of dictionary in other forms c# 
Csharp :: Rotate Object with keyboard 
Csharp :: Set database timeout in Entity Framework 
Csharp :: how to add the ssl certificate in vb.net application 
Csharp :: unity follow object 
Csharp :: ef core totable 
Csharp :: new guid c# always returns 0 
Csharp :: IdentityServer vs JWT vs OAuth? 
Csharp :: csvhelper driver c# nuget 
Csharp :: c# fastest way to find item in list 
Csharp :: json string to JObject object c# camelCasing key .net 
Csharp :: nullable IList 
Csharp :: aws asp.net tutorial 
Csharp :: Xamarin Forms Update Button Text Code 
Csharp :: wait for threadpool to complete with decrement 
Csharp :: C# free text search 
Csharp :: netlifycms disable preview 
Csharp :: how to authorize token when consuming api in c# 
Csharp :: Difference between Math.Floor() and Math.Truncate() 
Csharp :: c# distinct dictionary 
Csharp :: unity int to bool 
Csharp :: unity c# request store review 
Csharp :: get index of item unity 
Csharp :: C# Bitwise and Bit Shift operator 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =