ASP.NET - how to decrease width of gridview of particular column?

Asked By sunil pandey
03-Feb-12 11:37 PM
Hi all

i am using controlstyle-width="50%" in boundfield but width is not decreasing
  D Company replied to sunil pandey
04-Feb-12 12:10 AM
Hello Friend.

for the bound field the best option would be "ItemStyle". apply it and see the result, if still it is not displaying properly than include HeaderStyle as well.

Regards
D
  dipa ahuja replied to sunil pandey
04-Feb-12 03:42 AM
Hi..

Click on the smart tag of GridView--> Choose Edit Columns --> now in the dialog box:

Create New Account
help
Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP.NET sessions with classic ASP? (B) Which are the various modes of storing ASP.NET session
in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we have to edit the page level debugging Calender Control DLL named: CalenderControl.dll. 3) Now you a can customize the Toolbox: Right-Click the Toolbox> .NET Framework Components> Browse> select the CalenderControl.dll. 4)The The control itself will take care of the date display How can you deploy an asp.net application ? You can deploy an ASP.NET Web application using any one of the following three deployment options. a) Deployment using
Migration from ASP to ASP.net How to convert ASP site to ASP.NET site using C# http: / / www.asp.net / downloads / archived-v11 / migration-assistants / asp-to-aspnet hi, ASP.NET framework is very much different from unstrucured ASP and there is no correct way to
Tracing in ASP.NET? hi all, what is tracing? how to achieve tracing in asp.net? different ways of doing tracing? thanks and regards Aman Khan hi. . Tracing in ASP.NET 2.0 Tracing is a way to monitor the execution of your ASP.NET application. You can record exception details and program flow in a way that doesn't
Dropdown selected value = Outsidedropdownlist selected value ddl is girdview dropdown. but i want on button click. when user press insert button then selected value of outside dropdown should go to the ddl which is lying inside gridview . At first entry gridivew ddl is empty. give more thanks hello friend, you have to loop through each row of grid to find that control which is the idea suggested above, in my humble opinion you are just over-complicating things. The Gridview should show data from a datasource and you should alter it. Hold on, in case a place you can retrieve them again. So, in case you want the user to choose a value and then give him options inside the gridview, you should create template columns and bind the dropdownlist there. Read the below instructions. To the Gridview, add a Template Field. To this template field, add an Item Template and add a