Click here to Skip to main content
11,486,673 members (70,040 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows C#4.0 form
how can a user also select a column to view in the application??
query please
Posted 16-Jan-13 20:32pm
Comments
shabari7 at 17-Jan-13 1:40am
   
Are u able to understand the strings?
Muhamad Faizan Khan at 17-Jan-13 2:12am
   
u mean conncection string? yes
shabari7 at 17-Jan-13 2:14am
   
man what's ur requirement? be precise
Shanu2rick at 17-Jan-13 2:22am
   
Define "Column"?
Muhamad Faizan Khan at 17-Jan-13 2:33am
   
a database column selection feature in windows application.
Shanu2rick at 17-Jan-13 2:53am
   
Use a query Specify the simple column in it like this:
"Select ColumnName from TableName"
get this column in datatable or dataset and show this column using any datacontrol you want.
Sandeep Mewara at 17-Jan-13 2:39am
   
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.
Muhamad Faizan Khan at 17-Jan-13 2:41am
   
oki i do

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

In the whole System.Windows.Forms library, there is no such concept as the column selection. There are only the selection modes allowing to select some cell, set of cells, entire rows or set of rows. Even if you can select some cells of the same column, this is not selection of column.

I'm afraid to say, you will have to design you UI not relying on such feature as column selection.

—SA
  Permalink  
Comments
Muhamad Faizan Khan at 17-Jan-13 2:55am
   
;-( really
Sergey Alexandrovich Kryukov at 17-Jan-13 3:20am
   
Well, yes... :-(
Your other chance could be creation of some control from scratch, based on, say, Panel, or Control as a base class...
—SA

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 8,888
1 OriginalGriff 8,147
2 Sascha Lefèvre 3,254
3 Maciej Los 2,886
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100