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

ASP.NET

 
AnswerRe: Required a Message using DIV Pin
Abhishek Sur28-Aug-08 9:36
professionalAbhishek Sur28-Aug-08 9:36 
GeneralRe: Required a Message using DIV Pin
slSoftware29-Aug-08 4:53
slSoftware29-Aug-08 4:53 
QuestionProblem With Grid View Header Pin
Anudeep Jaiswal28-Aug-08 5:33
Anudeep Jaiswal28-Aug-08 5:33 
AnswerRe: Problem With Grid View Header Pin
mghiassi28-Aug-08 8:03
mghiassi28-Aug-08 8:03 
GeneralRe: Problem With Grid View Header Pin
Anudeep Jaiswal29-Aug-08 0:16
Anudeep Jaiswal29-Aug-08 0:16 
AnswerRe: Problem With Grid View Header Pin
D4ever28-Aug-08 8:40
D4ever28-Aug-08 8:40 
QuestionAdding a Combobox in a Datagridview ASP.NET Pin
Vimalsoft(Pty) Ltd28-Aug-08 4:58
professionalVimalsoft(Pty) Ltd28-Aug-08 4:58 
AnswerRe: Adding a Combobox in a Datagridview ASP.NET Pin
AlexeiXX328-Aug-08 11:41
AlexeiXX328-Aug-08 11:41 
You need to include the column (Lets call it StatusID) with the numeric values: 1, 2, 3, 4... in your select statement
For your gridview:
Add an edit column to the gridview
Convert the StatusID column into a template field
Go into edit templates (Edit mode for the StatusID column), insert a dropdownlist and remove the deafult textbox and add the items to this dropdownlist (value and text: 1 Previous, 2 Active...) or set its datasource to a select statement containing all your statuses
Bind the selectedvalue of the dropdownlist: SelectedValue = '<%# Bind ("StatusID") %>'


<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AutoGenerateEditButton="True" AutoGenerateSelectButton="True">
       <Columns>
           <asp:BoundField HeaderText="Col1" />
           <asp:TemplateField HeaderText="Col2">
               <EditItemTemplate>
                   <asp:DropDownList ID="DropDownList1" runat="server" SelectedValue='<%# Bind("StatusID") %>'>
                       <asp:ListItem Value="1">Status 1</asp:ListItem>
                       <asp:ListItem Value="2">Status 2</asp:ListItem>
                       <asp:ListItem Value="3">Status 3</asp:ListItem>
                   </asp:DropDownList>
               </EditItemTemplate>
               <ItemTemplate>
                   <asp:Label ID="Label1" runat="server"></asp:Label>
               </ItemTemplate>
           </asp:TemplateField>
       </Columns>
   </asp:GridView>


Alexei Rodriguez

QuestionPositioning a Web User Control Pin
Gretna28-Aug-08 3:26
Gretna28-Aug-08 3:26 
AnswerRe: Positioning a Web User Control Pin
Abhishek Sur28-Aug-08 9:39
professionalAbhishek Sur28-Aug-08 9:39 
QuestionMethods being generated in the wrong place [solved] Pin
Richard Jones28-Aug-08 2:59
Richard Jones28-Aug-08 2:59 
AnswerRe: Methods being generated in the wrong place Pin
Bardy8528-Aug-08 4:45
Bardy8528-Aug-08 4:45 
AnswerRe: Methods being generated in the wrong place Pin
Abhishek Sur28-Aug-08 9:42
professionalAbhishek Sur28-Aug-08 9:42 
GeneralRe: Methods being generated in the wrong place Pin
Richard Jones28-Aug-08 9:46
Richard Jones28-Aug-08 9:46 
GeneralRe: Methods being generated in the wrong place Pin
Abhishek Sur29-Aug-08 2:06
professionalAbhishek Sur29-Aug-08 2:06 
GeneralRe: Methods being generated in the wrong place Pin
Richard Jones29-Aug-08 2:35
Richard Jones29-Aug-08 2:35 
GeneralRe: Methods being generated in the wrong place Pin
Abhishek Sur29-Aug-08 3:35
professionalAbhishek Sur29-Aug-08 3:35 
AnswerRe: Methods being generated in the wrong place Pin
Richard Jones29-Aug-08 5:50
Richard Jones29-Aug-08 5:50 
QuestionTimed out Error in my webpage Pin
Rajeshwary28-Aug-08 2:49
Rajeshwary28-Aug-08 2:49 
AnswerRe: Timed out Error in my webpage Pin
J4amieC28-Aug-08 4:36
J4amieC28-Aug-08 4:36 
GeneralRe: Timed out Error in my webpage Pin
Rajeshwary28-Aug-08 5:00
Rajeshwary28-Aug-08 5:00 
GeneralRe: Timed out Error in my webpage Pin
J4amieC28-Aug-08 5:15
J4amieC28-Aug-08 5:15 
GeneralRe: Timed out Error in my webpage Pin
Rajeshwary28-Aug-08 5:17
Rajeshwary28-Aug-08 5:17 
AnswerRe: Timed out Error in my webpage Pin
Abhishek Sur28-Aug-08 9:47
professionalAbhishek Sur28-Aug-08 9:47 
Questioncomponent like rich textBox Pin
wasifmuneer28-Aug-08 0:58
wasifmuneer28-Aug-08 0:58 

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.