Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionManually Coding an Edit, Update, Cancel Button in Gridview Asp.net Pin
Robmyel Padrinao5-Mar-15 20:05
Robmyel Padrinao5-Mar-15 20:05 
I have this gridview in asp.net where the data shown comes from a stored procedure

my stored procedure has this query:
AS BEGIN
SELECT vw_AppInfo.ID, vw_AppInfo.FIRST_NAME, vw_AppInfo.MIDDLE_NAME, vw_AppInfo.LAST_NAME, vw_AppInfo.EXTN,
vw_AppScore.ADMISSION_SCORE
FROM vw_AppInfo
RIGHT JOIN vw_AppScore ON vw_AppInfo.ID = vw_AppScore.ID
WHERE vw_AppInfo.REMARKS = 'ACCEPTED'
END

and this is my gridview:
<asp:gridview id="gvGrade" runat="server" allowpaging="True" allowsorting="True" autogeneratecolumns="False" cellpadding="4" datasourceid="SqlDataSource1" forecolor="#333333" gridlines="None" pagesize="30" width="900px">
<alternatingrowstyle backcolor="White">
<columns>
<asp:boundfield datafield="ID" headertext="ID" sortexpression="ID" readonly="true">
<asp:boundfield datafield="FIRST_NAME" headertext="FIRST_NAME" sortexpression="FIRST_NAME" readonly="true">
<asp:boundfield datafield="MIDDLE_NAME" headertext="MIDDLE_NAME" sortexpression="MIDDLE_NAME" readonly="true">
<asp:boundfield datafield="LAST_NAME" headertext="LAST_NAME" sortexpression="LAST_NAME" readonly="true">
<asp:boundfield datafield="EXTN" headertext="EXTN" sortexpression="EXTN" readonly="true">
<asp:boundfield datafield="ADMISSION_SCORE" headertext="SCORE" sortexpression="ADMISSION_SCORE">

<editrowstyle backcolor="#7C6F57">
<footerstyle backcolor="#1C5E55" font-bold="True" forecolor="White">
<headerstyle backcolor="#1C5E55" font-bold="True" forecolor="White">
<pagerstyle backcolor="#666666" forecolor="White" horizontalalign="Center">
<rowstyle backcolor="#E3EAEB">
<selectedrowstyle backcolor="#C5BBAF" font-bold="True" forecolor="#333333">
<sortedascendingcellstyle backcolor="#F8FAFA">
<sortedascendingheaderstyle backcolor="#246B61">
<sorteddescendingcellstyle backcolor="#D4DFE1">
<sorteddescendingheaderstyle backcolor="#15524A">



what I need is that only the Admission_Score/Score column can be edited. I tried using the commandfield but the "update" does not work.
AnswerRe: Manually Coding an Edit, Update, Cancel Button in Gridview Asp.net Pin
deepankarbhatnagar10-Mar-15 23:02
professionaldeepankarbhatnagar10-Mar-15 23:02 
QuestionHandling Active Links which redirect to another report in reports using Report Viewer Pin
Kandepu Rajesh4-Mar-15 11:17
Kandepu Rajesh4-Mar-15 11:17 
AnswerRe: Handling Active Links which redirect to another report in reports using Report Viewer Pin
Kandepu Rajesh5-Mar-15 5:26
Kandepu Rajesh5-Mar-15 5:26 
GeneralRe: Handling Active Links which redirect to another report in reports using Report Viewer Pin
Richard MacCutchan5-Mar-15 6:48
mveRichard MacCutchan5-Mar-15 6:48 
AnswerRe: Handling Active Links which redirect to another report in reports using Report Viewer Pin
jkirkerx5-Mar-15 7:47
professionaljkirkerx5-Mar-15 7:47 
GeneralRe: Handling Active Links which redirect to another report in reports using Report Viewer Pin
Kandepu Rajesh5-Mar-15 8:19
Kandepu Rajesh5-Mar-15 8:19 
GeneralRe: Handling Active Links which redirect to another report in reports using Report Viewer Pin
jkirkerx5-Mar-15 9:06
professionaljkirkerx5-Mar-15 9:06 
QuestionIs Office required to have installed on the machine with Interop dll? Pin
sudevsu3-Mar-15 7:56
sudevsu3-Mar-15 7:56 
AnswerRe: Is Office required to have installed on the machine with Interop dll? Pin
F-ES Sitecore3-Mar-15 8:06
professionalF-ES Sitecore3-Mar-15 8:06 
AnswerRe: Is Office required to have installed on the machine with Interop dll? Pin
Richard Deeming3-Mar-15 8:15
mveRichard Deeming3-Mar-15 8:15 
GeneralRe: Is Office required to have installed on the machine with Interop dll? Pin
sudevsu3-Mar-15 10:16
sudevsu3-Mar-15 10:16 
AnswerRe: Is Office required to have installed on the machine with Interop dll? Pin
PIEBALDconsult3-Mar-15 8:44
mvePIEBALDconsult3-Mar-15 8:44 
GeneralRe: Is Office required to have installed on the machine with Interop dll? Pin
sudevsu3-Mar-15 10:16
sudevsu3-Mar-15 10:16 
AnswerRe: Is Office required to have installed on the machine with Interop dll? Pin
jkirkerx4-Mar-15 8:48
professionaljkirkerx4-Mar-15 8:48 
AnswerRe: Is Office required to have installed on the machine with Interop dll? Pin
mohit908-Mar-15 9:35
mohit908-Mar-15 9:35 
Questionms access query to select between date Pin
Praveen Kandari3-Mar-15 1:04
Praveen Kandari3-Mar-15 1:04 
AnswerRe: ms access query to select between date Pin
F-ES Sitecore3-Mar-15 2:03
professionalF-ES Sitecore3-Mar-15 2:03 
AnswerRe: ms access query to select between date Pin
Humayun Kabir Mamun3-Mar-15 2:05
Humayun Kabir Mamun3-Mar-15 2:05 
AnswerRe: ms access query to select between date Pin
Richard Deeming3-Mar-15 5:26
mveRichard Deeming3-Mar-15 5:26 
GeneralRe: ms access query to select between date Pin
Praveen Kandari3-Mar-15 17:50
Praveen Kandari3-Mar-15 17:50 
GeneralRe: ms access query to select between date Pin
Richard Deeming3-Mar-15 23:51
mveRichard Deeming3-Mar-15 23:51 
AnswerRe: ms access query to select between date Pin
jkirkerx4-Mar-15 8:52
professionaljkirkerx4-Mar-15 8:52 
GeneralRe: ms access query to select between date Pin
Praveen Kandari4-Mar-15 17:40
Praveen Kandari4-Mar-15 17:40 
Questiontest Pin
Praveen Kandari3-Mar-15 0:52
Praveen Kandari3-Mar-15 0:52 

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.