Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
AnswerRe: Initialize array in one line / in a single statement Pin
PIEBALDconsult22-Jun-10 17:47
mvePIEBALDconsult22-Jun-10 17:47 
GeneralRe: Initialize array in one line / in a single statement Pin
NetQuestions26-Jun-10 22:34
NetQuestions26-Jun-10 22:34 
GeneralRe: Initialize array in one line / in a single statement Pin
PIEBALDconsult27-Jun-10 3:34
mvePIEBALDconsult27-Jun-10 3:34 
QuestionHow do I get a datagrid to only show certain columns from a dataset? Pin
Terence van Schalkwyk22-Jun-10 0:55
Terence van Schalkwyk22-Jun-10 0:55 
AnswerRe: How do I get a datagrid to only show certain columns from a dataset? Pin
Luc Pattyn22-Jun-10 1:15
sitebuilderLuc Pattyn22-Jun-10 1:15 
GeneralRe: How do I get a datagrid to only show certain columns from a dataset? Pin
Terence van Schalkwyk22-Jun-10 1:20
Terence van Schalkwyk22-Jun-10 1:20 
GeneralRe: How do I get a datagrid to only show certain columns from a dataset? Pin
Dave Kreskowiak22-Jun-10 5:59
mveDave Kreskowiak22-Jun-10 5:59 
AnswerRe: How do I get a datagrid to only show certain columns from a dataset? Pin
meeram39522-Jun-10 1:17
meeram39522-Jun-10 1:17 
Terence van Schalkwyk wrote:
1. How can I get my datagrid to only show the Name and not the ID column?


Like this:
 <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" >
 <Columns>
 <asp:BoundField  DataField="EmployeeID" HeaderText="EmployeeID" ReadOnly="True" SortExpression="EmployeeID" />
               <asp:TemplateField HeaderText="EmployeeID" SortExpression="EmployeeID" Visible="false">
</asp:TemplateField>



Terence van Schalkwyk wrote:
2. Also if I have a column named First Name in my datafrid how can I get name to show up in that column and not in a new one or how can I assign custom names to my datagrid?


Similar logic as above.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

GeneralRe: How do I get a datagrid to only show certain columns from a dataset? Pin
Terence van Schalkwyk22-Jun-10 1:21
Terence van Schalkwyk22-Jun-10 1:21 
AnswerRe: How do I get a datagrid to only show certain columns from a dataset? Pin
Abhinav S22-Jun-10 1:19
Abhinav S22-Jun-10 1:19 
GeneralRe: How do I get a datagrid to only show certain columns from a dataset? Pin
Terence van Schalkwyk22-Jun-10 1:25
Terence van Schalkwyk22-Jun-10 1:25 
AnswerRe: How do I get a datagrid to only show certain columns from a dataset? Pin
Terence van Schalkwyk22-Jun-10 1:28
Terence van Schalkwyk22-Jun-10 1:28 
GeneralRe: How do I get a datagrid to only show certain columns from a dataset? Pin
darkelv22-Jun-10 1:42
darkelv22-Jun-10 1:42 
AnswerRe: How do I get a datagrid to only show certain columns from a dataset? Pin
darkelv22-Jun-10 1:33
darkelv22-Jun-10 1:33 
GeneralRe: How do I get a datagrid to only show certain columns from a dataset? Pin
Terence van Schalkwyk22-Jun-10 1:42
Terence van Schalkwyk22-Jun-10 1:42 
AnswerRe: How do I get a datagrid to only show certain columns from a dataset? Pin
Bigdeak22-Jun-10 1:47
Bigdeak22-Jun-10 1:47 
QuestionXmlDocument.Save() throws expection when file name is containing colon ":". Pin
Piyush Vaishnav21-Jun-10 23:33
Piyush Vaishnav21-Jun-10 23:33 
AnswerRe: XmlDocument.Save() throws expection when file name is containing colon ":". Pin
Pete O'Hanlon21-Jun-10 23:42
mvePete O'Hanlon21-Jun-10 23:42 
AnswerRe: XmlDocument.Save() throws expection when file name is containing colon ":". Pin
freakyit22-Jun-10 0:40
freakyit22-Jun-10 0:40 
QuestionModfying Print Document Pin
Emmet_Brown21-Jun-10 23:13
Emmet_Brown21-Jun-10 23:13 
AnswerMessage Closed Pin
21-Jun-10 23:27
stancrm21-Jun-10 23:27 
GeneralRe: Modfying Print Document Pin
Emmet_Brown22-Jun-10 0:03
Emmet_Brown22-Jun-10 0:03 
AnswerRe: Modfying Print Document Pin
Emmet_Brown22-Jun-10 1:12
Emmet_Brown22-Jun-10 1:12 
QuestionRun a script on a linux box from Windows OS using windows-form written in C# Pin
ksaw12321-Jun-10 20:57
ksaw12321-Jun-10 20:57 
AnswerRe: Run a script on a linux box from Windows OS using windows-form written in C# Pin
Łukasz Nowakowski21-Jun-10 21:29
Łukasz Nowakowski21-Jun-10 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.