How to print labels in windows form in C# .net

Answer Posted / satish

for printing a data on a label from database for this u
have to declare a label Label1 in the application and then
declare a datarow for retrieving row data from dataset and
the assign it to the label like this
datarow dr=dataset.tables[0].rows[1];
Label1=dr[0].tostring();

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class c#?

684


What is IL / CIL / MSIL?

909


Is c# lazy thread safe?

709


What is tryparse c#?

733


What can be done with c#?

634


What is a statement c#?

718


Is string nullable c#?

723


What is datatable in c#?

708


Does c# have primitives?

672


What are virtual classes in c#?

754


What is void in c#?

763


What is equal c#?

735


What are fields in c#?

696


Enlist all the components of an ado.net framework?

689


What is the use of flag in c#?

723