Click here to Skip to main content
15,914,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to Upload website in internet? Pin
badgrs7-Feb-07 3:55
badgrs7-Feb-07 3:55 
GeneralRe: how to Upload website in internet? Pin
sanaziuse7-Feb-07 5:07
sanaziuse7-Feb-07 5:07 
Questionunknown error in c# web application Pin
Member 24081286-Feb-07 23:47
Member 24081286-Feb-07 23:47 
AnswerRe: unknown error in c# web application Pin
gauthee6-Feb-07 23:53
gauthee6-Feb-07 23:53 
AnswerRe: unknown error in c# web application Pin
Sylvester george6-Feb-07 23:57
Sylvester george6-Feb-07 23:57 
QuestionHow to update the xml file using datagrid in asp.net Pin
mohit Tyagi6-Feb-07 23:47
mohit Tyagi6-Feb-07 23:47 
AnswerRe: How to update the xml file using datagrid in asp.net Pin
blue_arc7-Feb-07 0:31
blue_arc7-Feb-07 0:31 
QuestionRead data from gridview Pin
mail5723526-Feb-07 23:35
mail5723526-Feb-07 23:35 
Hi,

I have a gridview containing several rows of multi-column data. I've bound my grid from an ArrayList specifying bound fields on my gridview columns like this:

<asp:BoundField HeaderText="Price" DataField="SalesPrice" />


I can then read in cell/column data by indexing into the row and indexing to the column I need like this:

String str = (gvItems.Rows[i].Cells[0]).Text;


Knowing exactly which column it is, is error-prone so what I'd like to do is access my data knowing the datafield name, "SalesPrice". Can anyone suggest a good way of doing this?

Do I need to have a template?
AnswerRe: Read data from gridview Pin
dinus286-Feb-07 23:49
dinus286-Feb-07 23:49 
GeneralRe: Read data from gridview Pin
mail5723527-Feb-07 0:37
mail5723527-Feb-07 0:37 
GeneralRe: Read data from gridview Pin
dinus287-Feb-07 0:50
dinus287-Feb-07 0:50 
GeneralRe: Read data from gridview Pin
mail5723527-Feb-07 1:37
mail5723527-Feb-07 1:37 
AnswerRe: Read data from gridview Pin
gauthee6-Feb-07 23:50
gauthee6-Feb-07 23:50 
GeneralRe: Read data from gridview Pin
dinus286-Feb-07 23:54
dinus286-Feb-07 23:54 
GeneralRe: Read data from gridview Pin
gauthee7-Feb-07 0:01
gauthee7-Feb-07 0:01 
GeneralRe: Read data from gridview Pin
gauthee7-Feb-07 0:03
gauthee7-Feb-07 0:03 
GeneralRe: Read data from gridview Pin
mail5723527-Feb-07 0:39
mail5723527-Feb-07 0:39 
AnswerRe: Read data from gridview Pin
varshavmane6-Feb-07 23:57
varshavmane6-Feb-07 23:57 
AnswerRe: Read data from gridview Pin
Murthy Puvvada7-Feb-07 2:11
Murthy Puvvada7-Feb-07 2:11 
Questiondatagrid in a seperate cs file Pin
gauthee6-Feb-07 23:33
gauthee6-Feb-07 23:33 
AnswerRe: datagrid in a seperate cs file Pin
Paddy Boyd6-Feb-07 23:36
Paddy Boyd6-Feb-07 23:36 
GeneralRe: datagrid in a seperate cs file Pin
gauthee6-Feb-07 23:57
gauthee6-Feb-07 23:57 
GeneralRe: datagrid in a seperate cs file Pin
blue_arc7-Feb-07 0:34
blue_arc7-Feb-07 0:34 
GeneralRe: datagrid in a seperate cs file Pin
gauthee7-Feb-07 0:43
gauthee7-Feb-07 0:43 
QuestionOnline Radio Pin
M A A Mehedi Hasan6-Feb-07 23:29
M A A Mehedi Hasan6-Feb-07 23:29 

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.