I was looking into the forums.asp.net and I have found lots of people was searching about how to set GridView Column Width dynamically. So I thought it will be a good idea to write a blog post about it.
So let’s take a an example for that. For that I have created a small model Employee class which will have three properties.
Example(Setting Width Dynamically in ASP.Net):
public class Employee { public int EmployeeId { get; set; } public string FirstName { get; set; } public string LastName { get; set; } }