Click here to Skip to main content
15,924,038 members
Home / Discussions / C#
   

C#

 
GeneralRe: howto get data in datatable ? [modified] Pin
Larantz26-May-06 0:17
Larantz26-May-06 0:17 
QuestionHelp with calling NetFileEnum from NetApi32.dll Pin
dlaw148925-May-06 23:05
dlaw148925-May-06 23:05 
Questiona question about displaying time ? help ... Pin
cmpeng3425-May-06 23:05
cmpeng3425-May-06 23:05 
AnswerRe: a question about displaying time ? help ... Pin
_AK_25-May-06 23:14
_AK_25-May-06 23:14 
AnswerRe: a question about displaying time ? help ... Pin
rah_sin25-May-06 23:21
professionalrah_sin25-May-06 23:21 
GeneralRe: a question about displaying time ? help ... [modified] Pin
albCode25-May-06 23:28
albCode25-May-06 23:28 
GeneralMessage Closed Pin
26-May-06 0:06
cmpeng3426-May-06 0:06 
GeneralRe: a question about displaying time ? help ... Pin
Stefan Troschuetz26-May-06 0:18
Stefan Troschuetz26-May-06 0:18 
GeneralRe: a question about displaying time ? help ... Pin
rah_sin26-May-06 0:23
professionalrah_sin26-May-06 0:23 
AnswerRe: a question about displaying time ? help ... Pin
J4amieC26-May-06 0:38
J4amieC26-May-06 0:38 
QuestionSQL Netowrk Interfaces, error:26 - Error locating Server/Instance specified.) Pin
emran83425-May-06 22:43
emran83425-May-06 22:43 
AnswerRe: SQL Netowrk Interfaces, error:26 - Error locating Server/Instance specified.) Pin
Larantz26-May-06 0:29
Larantz26-May-06 0:29 
QuestionDepth first search Pin
shdelpiero25-May-06 22:26
shdelpiero25-May-06 22:26 
AnswerRe: Depth first search Pin
Larantz26-May-06 0:23
Larantz26-May-06 0:23 
GeneralRe: Depth first search Pin
_AK_26-May-06 0:26
_AK_26-May-06 0:26 
AnswerRe: Depth first search Pin
shdelpiero26-May-06 3:21
shdelpiero26-May-06 3:21 
QuestionActive Directory 2003 Pin
AnhTin25-May-06 21:41
AnhTin25-May-06 21:41 
QuestionData binding.. is it possible ? Pin
Imtiaz Murtaza25-May-06 20:25
Imtiaz Murtaza25-May-06 20:25 
Dear friends,
Is it possible to bind the fields of structure to the controls on the form ?

For example.. i got a structure

struct Student
{
String firstName;
String lastName;
// and many other fields and properties
}

Now i got a *form* in which many text boxes are present related to the student. I am initializing form as follows;

txtBoxFirstName.text = student.firstName;
txtBoxLastName.text = student.lastName;
// and so on

Similarly when the form is dismissed, i read the changes back to the structure as:

student.firstName = txtBoxFirstName.text;
student.lastName = txtBoxLastName.text;
// and so on

Now, the problem is that the *Student* structure is very simple containing two fields, as such i need two text boxes on the form. But what if it contains 10 or 15 fields. As such i need to manually read each of the field value from the structure and displaying it in each of the edit controls. And then manually read changes from each edit control to the structure fields.

Is it possible to directly *bind* the strucute fields with the edit controls. It is very easy in ADO.NET. But i dont know whether it is possible in my case ?

Imtiaz
Questionusing #define to define string constants [modified] Pin
abhijit pai25-May-06 20:20
abhijit pai25-May-06 20:20 
AnswerRe: using #define to define string constants [modified] Pin
Colin Angus Mackay25-May-06 23:13
Colin Angus Mackay25-May-06 23:13 
GeneralRe: using #define to define string constants [modified] Pin
abhijit pai25-May-06 23:33
abhijit pai25-May-06 23:33 
GeneralRe: using #define to define string constants [modified] Pin
Larantz26-May-06 0:24
Larantz26-May-06 0:24 
GeneralRe: using #define to define string constants [modified] Pin
Colin Angus Mackay26-May-06 11:15
Colin Angus Mackay26-May-06 11:15 
GeneralRe: using #define to define string constants [modified] Pin
abhijit pai29-May-06 3:36
abhijit pai29-May-06 3:36 
GeneralRe: using #define to define string constants [modified] Pin
Colin Angus Mackay29-May-06 4:49
Colin Angus Mackay29-May-06 4:49 

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.