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

ASP.NET

 
AnswerRe: Inserting in Multi table With one Store Procedure Pin
Brij27-Oct-10 1:29
mentorBrij27-Oct-10 1:29 
Questionmasked textbox for date entry. Pin
Asif Rehman26-Oct-10 5:13
Asif Rehman26-Oct-10 5:13 
AnswerRe: masked textbox for date entry. Pin
Keith Barrow26-Oct-10 7:15
professionalKeith Barrow26-Oct-10 7:15 
AnswerRe: masked textbox for date entry. Pin
Abhijit Jana26-Oct-10 7:35
professionalAbhijit Jana26-Oct-10 7:35 
QuestionConvert GridView To DataTable Pin
treuveni26-Oct-10 0:47
treuveni26-Oct-10 0:47 
AnswerRe: Convert GridView To DataTable Pin
Abhijit Jana26-Oct-10 0:53
professionalAbhijit Jana26-Oct-10 0:53 
AnswerRe: Convert GridView To DataTable Pin
Blue_Boy26-Oct-10 1:03
Blue_Boy26-Oct-10 1:03 
AnswerRe: Convert GridView To DataTable Pin
Anurag Gandhi26-Oct-10 2:49
professionalAnurag Gandhi26-Oct-10 2:49 
If you are trying to retrieve the data after postback, datasource will return null unless you bind the data again.

If your GridView ViewState is not disabled, you can access the data by iterating rows and columns like this:

foreach(GridViewRow row in grdRawData.Rows)
{
    myData = row.Cells[ColNum].Text;  // For BoundField only.//
}


If you are using controls, say TextBox, in GridView Columns, you can fetch the data by using FindControl method.

TextBox txtName = (TextBox)grdRawData.Rows[rowNum].FindControl("IdOfTextBox");  // For BoundField only.//
myData = txtName.Text;


Hope this will help.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.
My latest article: Group GridView Data

QuestionDropdownlist Shows defaultvalue when bound to sqldatasource. Pin
Asif Rehman26-Oct-10 0:04
Asif Rehman26-Oct-10 0:04 
AnswerRe: Dropdownlist Shows defaultvalue when bound to sqldatasource. Pin
Abhijit Jana26-Oct-10 0:57
professionalAbhijit Jana26-Oct-10 0:57 
GeneralRe: Dropdownlist Shows defaultvalue when bound to sqldatasource. Pin
Asif Rehman26-Oct-10 1:01
Asif Rehman26-Oct-10 1:01 
GeneralRe: Dropdownlist Shows defaultvalue when bound to sqldatasource. Pin
Abhijit Jana26-Oct-10 1:33
professionalAbhijit Jana26-Oct-10 1:33 
Questionasp.net Pin
gghhmmll25-Oct-10 21:52
gghhmmll25-Oct-10 21:52 
AnswerRe: asp.net Pin
Blue_Boy25-Oct-10 22:02
Blue_Boy25-Oct-10 22:02 
GeneralRe: asp.net Pin
Abhijit Jana25-Oct-10 22:27
professionalAbhijit Jana25-Oct-10 22:27 
GeneralRe: asp.net Pin
Blue_Boy25-Oct-10 23:46
Blue_Boy25-Oct-10 23:46 
GeneralRe: asp.net Pin
Abhijit Jana26-Oct-10 0:48
professionalAbhijit Jana26-Oct-10 0:48 
GeneralRe: asp.net Pin
Blue_Boy26-Oct-10 1:03
Blue_Boy26-Oct-10 1:03 
AnswerRe: asp.net Pin
Abhijit Jana25-Oct-10 22:26
professionalAbhijit Jana25-Oct-10 22:26 
AnswerRe: asp.net Pin
Pete O'Hanlon25-Oct-10 22:33
mvePete O'Hanlon25-Oct-10 22:33 
QuestionXML,Xhtml Pin
Any_India25-Oct-10 20:08
Any_India25-Oct-10 20:08 
AnswerRe: XML,Xhtml Pin
thatraja25-Oct-10 20:33
professionalthatraja25-Oct-10 20:33 
AnswerRe: XML,Xhtml Pin
javad200925-Oct-10 21:08
javad200925-Oct-10 21:08 
GeneralRe: XML,Xhtml Pin
Any_India25-Oct-10 21:31
Any_India25-Oct-10 21:31 
GeneralRe: XML,Xhtml Pin
Nithin Sundar27-Oct-10 20:30
Nithin Sundar27-Oct-10 20:30 

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.