How to reduce the width of textbox in editcommandcolumn of datagrid?



How to reduce the width of textbox in editcommandcolumn of datagrid?..

Answer / Shubhansi

To reduce the width of a TextBox in the `EditCommandColumn` of a DataGrid, you can use CSS or JavaScript to set the `width` property. For example, using CSS:nn```cssn<style>n.myDatagrid textbox {n width: 100px !important;n}n</style>n``

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

what are types of viewstate

1 Answers  


Differences between VB.Net and C#, related to OOPS concepts

5 Answers   CSC,


Difference between web user control and web custom control?

1 Answers  


how to add cliet side event to server side? and how to register client script to sever side? wt difference these two

3 Answers   PSI Data Systems,


What is the use of placeholder control? Can we see it at runtime?

1 Answers  


what is the difference between primary key and foreign key?

2 Answers  


What are the Types of state management techniques

1 Answers   Digital GlobalSoft,


If(dropdownlist1.selectedIndexChanged==true) { //code } else { //code } I am getting error in If condition, so can u pls give me a solution.

4 Answers  


Is post back in asp.net?

1 Answers  


how to handle sql exceptions?

4 Answers   Marlabs, TCS,


What is custom events? How to create it?

1 Answers  


What's the use of formatters in .net?

1 Answers  


Categories