Click here to Skip to main content
12,403,535 members (72,470 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# Windows C#4.0 form
how can a user also select a column to view in the application??
query please
Posted 16-Jan-13 19:32pm
Comments
shabari7 17-Jan-13 1:40am
   
Are u able to understand the strings?
Muhamad Faizan Khan 17-Jan-13 2:12am
   
u mean conncection string? yes
shabari7 17-Jan-13 2:14am
   
man what's ur requirement? be precise
Shanu2rick 17-Jan-13 2:22am
   
Define "Column"?
Muhamad Faizan Khan 17-Jan-13 2:33am
   
a database column selection feature in windows application.
Shanu2rick 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 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 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 17-Jan-13 2:55am
   
;-( really
   
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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2016
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