Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


how can i customizing DataGrid in window application ??

Posted on 2011-03-03
Medium Priority
Last Modified: 2012-05-11
i want to know that how can i customizing Datagrid in window application ??

here i attach one snapshot , please refer the attached snapshot ....

give me some suggestions ..
Question by:Parth48
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 13

Expert Comment

by:Naman Goel
ID: 35025064
for that you have to customize each column and select width of that column in data grid.
LVL 13

Expert Comment

by:Rahul Agarwal
ID: 35025384
LVL 14

Expert Comment

by:Dhanasekaran Sengodan
ID: 35025548
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.


Author Comment

ID: 35025815
i want to change the column header ,but how can i change it ??

instead of uname it's UserName

but how can i change it ??
LVL 14

Accepted Solution

Dhanasekaran Sengodan earned 2000 total points
ID: 35026024




public Form1()

        grid.Columns[0].HeaderText = "First Column";

More details are at MSDN. More details about DataGrid are
LVL 13

Expert Comment

by:Naman Goel
ID: 35027447
Hey for that you can use HeaderText property.

just select the column from Properties explorer in visual studio and change the HeaderText property

following are the list of properties with DataGridViewColumn object
LVL 13

Expert Comment

by:Naman Goel
ID: 35027494
following link is giving complete walk through

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA:…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question