Click here to Skip to main content
15,888,984 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Managing paper-like forms in .NET . Pin
Not Active7-Sep-09 5:18
mentorNot Active7-Sep-09 5:18 
GeneralRe: Managing paper-like forms in .NET . Pin
devboycpp7-Sep-09 6:52
devboycpp7-Sep-09 6:52 
GeneralRe: Managing paper-like forms in .NET . Pin
Not Active7-Sep-09 7:10
mentorNot Active7-Sep-09 7:10 
GeneralRe: Managing paper-like forms in .NET . Pin
devboycpp7-Sep-09 7:02
devboycpp7-Sep-09 7:02 
GeneralRe: Managing paper-like forms in .NET . Pin
Not Active7-Sep-09 7:09
mentorNot Active7-Sep-09 7:09 
GeneralRe: Managing paper-like forms in .NET . Pin
devboycpp7-Sep-09 7:23
devboycpp7-Sep-09 7:23 
GeneralRe: Managing paper-like forms in .NET . Pin
Not Active7-Sep-09 7:57
mentorNot Active7-Sep-09 7:57 
GeneralRe: Managing paper-like forms in .NET . [modified] Pin
devboycpp7-Sep-09 8:43
devboycpp7-Sep-09 8:43 
Thanks

Well . I just wanted an elegant way. Seems in this way I should write a function that in its body loops through records of a DataTable and blah blah blah ... like this

string GetFieldValue(string fieldName)
{
    for(int i=0 ; i < table1.Rows.Count ; i++)
    {
         if(table1.Rows[i]["fieldName"].ToString()==fieldName)
         {
               return table1.Rows[i]["Value"].ToString();
         }
    }

    return "";
}


Is it right majesty ? Or you know a more elegant way?

modified on Monday, September 7, 2009 3:33 PM

GeneralRe: Managing paper-like forms in .NET . Pin
Not Active7-Sep-09 9:44
mentorNot Active7-Sep-09 9:44 
GeneralRe: Managing paper-like forms in .NET . Pin
devboycpp7-Sep-09 9:59
devboycpp7-Sep-09 9:59 
GeneralRe: Managing paper-like forms in .NET . Pin
devboycpp7-Sep-09 9:35
devboycpp7-Sep-09 9:35 
QuestionTableAdapter query parameter taken from config file Pin
LordZoster6-Sep-09 21:15
LordZoster6-Sep-09 21:15 
AnswerRe: TableAdapter query parameter taken from config file Pin
Henry Minute7-Sep-09 4:00
Henry Minute7-Sep-09 4:00 
GeneralRe: TableAdapter query parameter taken from config file Pin
LordZoster7-Sep-09 4:09
LordZoster7-Sep-09 4:09 
GeneralRe: TableAdapter query parameter taken from config file Pin
Henry Minute7-Sep-09 4:18
Henry Minute7-Sep-09 4:18 
QuestionError Crystal "report has no table" in asp.net PinPopular
devlop6-Sep-09 19:11
devlop6-Sep-09 19:11 
AnswerRe: Error Crystal "report has no table" in asp.net Pin
The Vikash!25-Sep-09 3:22
The Vikash!25-Sep-09 3:22 
Questiongames in .Net Pin
yashwant vaishnav6-Sep-09 2:24
yashwant vaishnav6-Sep-09 2:24 
AnswerRe: games in .Net Pin
harold aptroot6-Sep-09 2:31
harold aptroot6-Sep-09 2:31 
AnswerRe: games in .Net Pin
Abhijit Jana6-Sep-09 3:11
professionalAbhijit Jana6-Sep-09 3:11 
GeneralRe: games in .Net Pin
Luc Pattyn6-Sep-09 7:21
sitebuilderLuc Pattyn6-Sep-09 7:21 
GeneralRe: games in .Net Pin
Henry Minute6-Sep-09 8:20
Henry Minute6-Sep-09 8:20 
GeneralRe: games in .Net Pin
Luc Pattyn6-Sep-09 8:42
sitebuilderLuc Pattyn6-Sep-09 8:42 
GeneralRe: games in .Net Pin
Henry Minute6-Sep-09 9:06
Henry Minute6-Sep-09 9:06 
GeneralRe: games in .Net Pin
Luc Pattyn6-Sep-09 9:21
sitebuilderLuc Pattyn6-Sep-09 9:21 

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.