Click here to Skip to main content
15,889,868 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionget bind Data only in postback Pin
Abdul Rahman Hamidy9-Apr-10 23:07
Abdul Rahman Hamidy9-Apr-10 23:07 
AnswerRe: get bind Data only in postback Pin
Brij9-Apr-10 23:23
mentorBrij9-Apr-10 23:23 
GeneralRe: get bind Data only in postback Pin
Abdul Rahman Hamidy9-Apr-10 23:26
Abdul Rahman Hamidy9-Apr-10 23:26 
GeneralRe: get bind Data only in postback Pin
nish11112-Apr-10 1:08
nish11112-Apr-10 1:08 
QuestionBinding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 20:06
SreejithKumar M9-Apr-10 20:06 
AnswerRe: Binding Gridview with data from String array Pin
Brij9-Apr-10 20:55
mentorBrij9-Apr-10 20:55 
GeneralRe: Binding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 21:14
SreejithKumar M9-Apr-10 21:14 
GeneralRe: Binding Gridview with data from String array Pin
Brij9-Apr-10 22:41
mentorBrij9-Apr-10 22:41 
You can not directly bind it in gridview in this form.As Abhijit suggested, create a datatable with your column names and add all the records as seperate rows like for
Sreejith
604 E 25th St
Chennaie, WY 82001-3133
Phone: (45) 67-64456

DataRow dr = dt.NewRow();
        dr["Name"] = "Sreejith";
        dr["Address1"] = "604 E 25th St";
        dr["Address2"] = "Chennaie, WY 82001-3133";
        dr["Phone"] = "Phone: (45) 67-6445";
        dt.Rows.Add(dr);

//similarly do it for all the records. and lastly execute the line
 dt.AcceptChanges(); 
//Now bind the datatable dt to your grid.


Hope it'll help

GeneralRe: Binding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 23:03
SreejithKumar M9-Apr-10 23:03 
GeneralRe: Binding Gridview with data from String array Pin
Brij9-Apr-10 23:13
mentorBrij9-Apr-10 23:13 
AnswerRe: Binding Gridview with data from String array Pin
Abhijit Jana9-Apr-10 22:23
professionalAbhijit Jana9-Apr-10 22:23 
GeneralRe: Binding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 23:04
SreejithKumar M9-Apr-10 23:04 
QuestionManaging session Pin
krishnaveer9-Apr-10 19:56
krishnaveer9-Apr-10 19:56 
AnswerRe: Managing session Pin
sriharsha_129-Apr-10 20:46
sriharsha_129-Apr-10 20:46 
GeneralRe: Managing session Pin
Not Active10-Apr-10 0:58
mentorNot Active10-Apr-10 0:58 
AnswerRe: Managing session Pin
Brij9-Apr-10 20:51
mentorBrij9-Apr-10 20:51 
QuestionModalPopupExtender not posting second time Pin
vlehotay9-Apr-10 16:30
vlehotay9-Apr-10 16:30 
AnswerRe: ModalPopupExtender not posting second time Pin
vasumagadi20-Jun-11 4:30
vasumagadi20-Jun-11 4:30 
GeneralRe: ModalPopupExtender not posting second time Pin
vlehotay22-Jul-11 7:40
vlehotay22-Jul-11 7:40 
QuestionHow can we create ISAM FILES? Pin
Satish - Developer9-Apr-10 8:28
Satish - Developer9-Apr-10 8:28 
AnswerRe: How can we create ISAM FILES? Pin
Abhijit Jana9-Apr-10 8:57
professionalAbhijit Jana9-Apr-10 8:57 
QuestionCreate Sheduling For Send SMS Pin
lrsalunkhe9-Apr-10 3:48
lrsalunkhe9-Apr-10 3:48 
AnswerRe: Create Sheduling For Send SMS Pin
Abhijit Jana9-Apr-10 3:58
professionalAbhijit Jana9-Apr-10 3:58 
AnswerRe: Create Sheduling For Send SMS Pin
Sandesh M Patil9-Apr-10 4:19
Sandesh M Patil9-Apr-10 4:19 
QuestionXML [modified] Pin
Farraj9-Apr-10 2:52
Farraj9-Apr-10 2: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.