Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB
Ex
===============|==============================
=   Col1 Header|            Col2 Header      |
===============|==============================
=     A        |              1              |
=     B        |              2              |
=     C        |              3              |
=              |                             |
===============|=============================|




While selecting col1 Header means, select A,B,C only. not 1,2,3.
Posted

1 solution

Loop through the cells and select each column cell -
SQL
grid.ClearSelection();
for(int r = 0; r < grid.RowCount; r++)
    grid[columnIndex, r].Selected = true;
 
Share this answer
 
Comments
Sathish km 4-Jul-15 2:18am    
great! working.. thnk u.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900