Click here to Skip to main content
15,920,508 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDrag and drop items between two listboxes in asp.net 2.0 with c# Pin
Kuricheti31-Aug-06 18:15
Kuricheti31-Aug-06 18:15 
AnswerRe: Drag and drop items between two listboxes in asp.net 2.0 with c# Pin
Not Active31-Aug-06 18:21
mentorNot Active31-Aug-06 18:21 
QuestionDrag and drop items between two listboxes in asp.net 2.0 with c# Pin
Kuricheti31-Aug-06 18:12
Kuricheti31-Aug-06 18:12 
AnswerRe: Drag and drop items between two listboxes in asp.net 2.0 with c# Pin
Not Active31-Aug-06 18:22
mentorNot Active31-Aug-06 18:22 
QuestionCreate DataGrid with scroll bar within the data Pin
HatakeKaKaShi31-Aug-06 16:23
HatakeKaKaShi31-Aug-06 16:23 
AnswerRe: Create DataGrid with scroll bar within the data Pin
Not Active31-Aug-06 18:23
mentorNot Active31-Aug-06 18:23 
QuestionInteresting problem with a datagrid Pin
raulstein31-Aug-06 15:45
raulstein31-Aug-06 15:45 
AnswerRe: Interesting problem with a datagrid Pin
postmaster@programmingknowledge.com31-Aug-06 16:54
postmaster@programmingknowledge.com31-Aug-06 16:54 
You need to work arround from the example below.
Define your datagrid as below

<asp:DataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server"
AutoGenerateColumns="False">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<P>
<asp:Label id="lblName" runat="server" Width="144px">Label</asp:Label></P>
<P>
<asp:Label id="lblCountry" runat="server" Width="144px">Label</asp:Label></P>
<P>&nbsp;</P>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn Visible="False" DataField="Firstname"></asp:BoundColumn>
<asp:BoundColumn Visible="False" DataField="Lastname"></asp:BoundColumn>
<asp:BoundColumn Visible="False" DataField="Country"></asp:BoundColumn>
</Columns>
</asp:DataGrid>


Finally DataGrid1_ItemDataBound :

Dim lblName As Label
Dim lblCountry As Label

If e.Item.ItemType <> ListItemType.Header And _
e.Item.ItemType <> ListItemType.Footer Then
lblName = CType(e.Item.FindControl("lblName"), Label)
lblName.Text = e.Item.Cells(1).Text & " " & e.Item.Cells(2).Text

lblCountry = CType(e.Item.FindControl("lblCountry"), Label)
lblCountry.Text = e.Item.Cells(3).Text
End If


==postmaster
www.programmingknowledge.com


Question.inc files in VS 2005 ? Pin
mrjmwcom31-Aug-06 14:09
mrjmwcom31-Aug-06 14:09 
AnswerRe: .inc files in VS 2005 ? Pin
minhpc_bk31-Aug-06 15:02
minhpc_bk31-Aug-06 15:02 
QuestionSeperate data from a DataSet into multiple GridViews Pin
Steve-o H.31-Aug-06 12:21
Steve-o H.31-Aug-06 12:21 
AnswerRe: Seperate data from a DataSet into multiple GridViews Pin
Not Active31-Aug-06 18:31
mentorNot Active31-Aug-06 18:31 
GeneralRe: Seperate data from a DataSet into multiple GridViews Pin
Steve-o H.1-Sep-06 5:54
Steve-o H.1-Sep-06 5:54 
GeneralRe: Seperate data from a DataSet into multiple GridViews Pin
Not Active1-Sep-06 10:07
mentorNot Active1-Sep-06 10:07 
QuestionSession cookie Pin
digsy_31-Aug-06 11:48
digsy_31-Aug-06 11:48 
AnswerRe: Session cookie Pin
minhpc_bk31-Aug-06 15:36
minhpc_bk31-Aug-06 15:36 
Questionfind edit button in EditCommandColumn in datagrid [modified] Pin
deepaks331-Aug-06 8:36
deepaks331-Aug-06 8:36 
AnswerRe: find edit button in EditCommandColumn in datagrid Pin
minhpc_bk31-Aug-06 15:10
minhpc_bk31-Aug-06 15:10 
AnswerRe: find edit button in EditCommandColumn in datagrid Pin
postmaster@programmingknowledge.com31-Aug-06 16:57
postmaster@programmingknowledge.com31-Aug-06 16:57 
QuestionHow to Disable the tool, address and Standar browsers bars Pin
Britney S. Morales31-Aug-06 6:40
Britney S. Morales31-Aug-06 6:40 
AnswerRe: How to Disable the tool, address and Standar browsers bars Pin
CWIZO31-Aug-06 8:53
CWIZO31-Aug-06 8:53 
GeneralRe: How to Disable the tool, address and Standar browsers bars Pin
Britney S. Morales31-Aug-06 11:26
Britney S. Morales31-Aug-06 11:26 
QuestionCalendar Control Pin
munklefish31-Aug-06 6:31
munklefish31-Aug-06 6:31 
AnswerRe: Calendar Control Pin
munklefish1-Sep-06 3:56
munklefish1-Sep-06 3:56 
QuestionMessage Board / Forum Creation Pin
GaryT8031-Aug-06 5:43
GaryT8031-Aug-06 5:43 

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.