Click here to Skip to main content
16,008,175 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: vigener cipher code Pin
Yusuf3-Jun-08 9:40
Yusuf3-Jun-08 9:40 
QuestionMailMessage [modified] Pin
Assaf823-Jun-08 6:16
Assaf823-Jun-08 6:16 
AnswerRe: MailMessage Pin
SomeGuyThatIsMe3-Jun-08 7:55
SomeGuyThatIsMe3-Jun-08 7:55 
GeneralRe: MailMessage Pin
Assaf823-Jun-08 10:51
Assaf823-Jun-08 10:51 
GeneralRe: MailMessage Pin
SomeGuyThatIsMe3-Jun-08 11:08
SomeGuyThatIsMe3-Jun-08 11:08 
GeneralRe: MailMessage Pin
w2093-Jun-08 21:46
w2093-Jun-08 21:46 
AnswerRe: MailMessage Pin
Gayani Devapriya3-Jun-08 8:20
Gayani Devapriya3-Jun-08 8:20 
QuestionDetailsView Fields Pin
DanB19833-Jun-08 5:03
DanB19833-Jun-08 5:03 
Hey

I have a DetailsView pointing to a datasource (a LINQ data source) that returns a row from a table to be displayed in the details view.

This works correctly and displays each column for the row in the DetailsView. However I wish to hide some of the columns such
as UserId and Acount_Balance so I have created fields for the DetailsView and bound them to the correct columns.

However now I get a DetailsView containing all the columns plus the bound columns I have created. How do I stop
the details view displaying all the columns and only show the ones I want it to.

Here is the code used:

<asp:LinqDataSource ID="OrganisorDetails" runat="server" ContextTypeName="DataClassesDataContext"
TableName="aspnet_Organisors" EnableUpdate="true" OnSelecting="OrganisorDetails_Selecting">
</asp:LinqDataSource>
<asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px"
CellPadding="4" ForeColor="#333333" GridLines="None"
AutoGenerateEditButton="True" DataSourceID="OrganisorDetails" DataKeyNames="UserId" >
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Fields>
<asp:BoundField DataField="Address_Ln1" HeaderText="Address Line1" InsertVisible="false" ReadOnly="true" />
</Fields>
</asp:DetailsView>


Thanks

At university studying Software Engineering - if i say this line to girls i find they won't talk to me

Dan
AnswerRe: DetailsView Fields Pin
DanB19833-Jun-08 5:27
DanB19833-Jun-08 5:27 
QuestionI'm needing a module Test Online, pls help me. Pin
Vunt15103-Jun-08 4:09
Vunt15103-Jun-08 4:09 
AnswerRe: I'm needing a module Test Online, pls help me. Pin
eyeseetee3-Jun-08 4:15
eyeseetee3-Jun-08 4:15 
AnswerRe: I'm needing a module Test Online, pls help me. Pin
MHASSANF3-Jun-08 4:16
MHASSANF3-Jun-08 4:16 
GeneralRe: I'm needing a module Test Online, pls help me. Pin
Vunt15109-Jun-08 17:25
Vunt15109-Jun-08 17:25 
AnswerRe: I'm needing a module Test Online, pls help me. Pin
Christian Graus3-Jun-08 5:17
protectorChristian Graus3-Jun-08 5:17 
QuestionWeb Client Software Factory Pin
Brendan Vogt3-Jun-08 4:00
Brendan Vogt3-Jun-08 4:00 
AnswerRe: Web Client Software Factory Pin
eyeseetee3-Jun-08 4:14
eyeseetee3-Jun-08 4:14 
QuestionSum Integer Values [modified] Pin
Mr. Wonderful3-Jun-08 3:26
Mr. Wonderful3-Jun-08 3:26 
AnswerRe: Sum Integer Values Pin
Colin Angus Mackay3-Jun-08 3:44
Colin Angus Mackay3-Jun-08 3:44 
AnswerRe: Sum Integer Values Pin
Mr. Wonderful3-Jun-08 3:57
Mr. Wonderful3-Jun-08 3:57 
AnswerRe: Sum Integer Values [modified] Pin
Yusuf3-Jun-08 9:34
Yusuf3-Jun-08 9:34 
GeneralRe: Sum Integer Values Pin
Mr. Wonderful3-Jun-08 21:16
Mr. Wonderful3-Jun-08 21:16 
Questionajaxtoolkit problem Pin
Miss Maheshwari3-Jun-08 2:33
Miss Maheshwari3-Jun-08 2:33 
AnswerRe: ajaxtoolkit problem Pin
Miss Maheshwari3-Jun-08 19:22
Miss Maheshwari3-Jun-08 19:22 
QuestionAbout DataGrid Pin
EzhilarasiMSc3-Jun-08 2:29
EzhilarasiMSc3-Jun-08 2:29 
AnswerRe: About DataGrid Pin
Yusuf3-Jun-08 9:26
Yusuf3-Jun-08 9:26 

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.