Click here to Skip to main content
15,916,378 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionI have an error :'System.Web.UI.WebControls.GridView.Rows' is a 'property' but is used like a 'method' Pin
Saba0225-Apr-08 2:33
Saba0225-Apr-08 2:33 
Hello all,

I want to use this code

protected void Cartgrid_RowUpdating(object sender,GridViewUpdateEventArgs e)<br />
    {<br />
        TextBox QuantityTextBox = (TextBox)Cartgrid.Rows(e.RowIndex).cells(2).controls(0);<br />
        <br />
    }


Cartgrid is a shopping cart.

but it has this error :'System.Web.UI.WebControls.GridView.Rows' is a 'property' but is used like a 'method'

now what do i do?
how can use this code without this Error?

Hoda

QuestionRe: I have an error :'System.Web.UI.WebControls.GridView.Rows' is a 'property' but is used like a 'method' Pin
Vasudevan Deepak Kumar25-Apr-08 2:35
Vasudevan Deepak Kumar25-Apr-08 2:35 
GeneralRe: I have an error :'System.Web.UI.WebControls.GridView.Rows' is a 'property' but is used like a 'method' Pin
eyeseetee25-Apr-08 2:47
eyeseetee25-Apr-08 2:47 
GeneralRe: I have an error :'System.Web.UI.WebControls.GridView.Rows' is a 'property' but is used like a 'method' Pin
AlexeiXX325-Apr-08 5:42
AlexeiXX325-Apr-08 5:42 
GeneralUse One datalist into another Pin
raushan_925-Apr-08 1:42
raushan_925-Apr-08 1:42 
GeneralRe: Use One datalist into another Pin
Vasudevan Deepak Kumar25-Apr-08 2:36
Vasudevan Deepak Kumar25-Apr-08 2:36 
RantRe: Use One datalist into another Pin
Ashish Sehajpal25-Apr-08 4:41
Ashish Sehajpal25-Apr-08 4:41 
GeneralRe: Use One datalist into another Pin
AlexeiXX325-Apr-08 6:35
AlexeiXX325-Apr-08 6:35 
NewsRe: Use One datalist into another Pin
shenbin25-Apr-08 21:52
shenbin25-Apr-08 21:52 
General[Message Deleted] Pin
Krazy Programmer25-Apr-08 0:40
Krazy Programmer25-Apr-08 0:40 
GeneralRe: How to make the complete page to be appeared in Center of the Screen [modified] Pin
Reethika25-Apr-08 0:48
Reethika25-Apr-08 0:48 
GeneralRe: How to make the complete page to be appeared in Center of the Screen Pin
Krazy Programmer25-Apr-08 0:57
Krazy Programmer25-Apr-08 0:57 
GeneralRe: [Message Deleted] Pin
squattyarun25-Apr-08 1:18
squattyarun25-Apr-08 1:18 
GeneralRe: [Message Deleted] Pin
Ashish Sehajpal25-Apr-08 1:36
Ashish Sehajpal25-Apr-08 1:36 
GeneralRe: [Message Deleted] Pin
Krazy Programmer25-Apr-08 2:14
Krazy Programmer25-Apr-08 2:14 
QuestionRe: [Message Deleted] Pin
Vasudevan Deepak Kumar25-Apr-08 2:36
Vasudevan Deepak Kumar25-Apr-08 2:36 
Questionmailing concepts Pin
Reethika25-Apr-08 0:33
Reethika25-Apr-08 0:33 
GeneralRe: mailing concepts Pin
Vasudevan Deepak Kumar25-Apr-08 0:56
Vasudevan Deepak Kumar25-Apr-08 0:56 
GeneralRe: mailing concepts Pin
eyeseetee25-Apr-08 1:01
eyeseetee25-Apr-08 1:01 
GeneralRe: mailing concepts Pin
Ashish Sehajpal25-Apr-08 1:51
Ashish Sehajpal25-Apr-08 1:51 
GeneralRe: mailing concepts Pin
Vasudevan Deepak Kumar25-Apr-08 2:17
Vasudevan Deepak Kumar25-Apr-08 2:17 
RantRe: mailing concepts Pin
Ashish Sehajpal25-Apr-08 4:34
Ashish Sehajpal25-Apr-08 4:34 
GeneralRe: mailing concepts Pin
eyeseetee25-Apr-08 4:56
eyeseetee25-Apr-08 4:56 
GeneralRe: mailing concepts Pin
Ashish Sehajpal25-Apr-08 5:41
Ashish Sehajpal25-Apr-08 5:41 
GeneralCreate a Search System... Pin
A-MEN25-Apr-08 0:24
A-MEN25-Apr-08 0:24 

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.