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 difference between .net and c#?

695


What is class method?

668


Explain manifest & metadata in c#.

748


What is dynamic dispatch?

728


What is the reason behind the invention of c#?

829


What is orm in c#?

685


What will a loop recorder show?

746


What is namespace in oop?

708


Can you pass value types by reference to a method?

718


What is the differences between datagrid, datalist and repeater in .net?

720


What are the properties of c#?

691


What is the use of 'using' statement in c#?

681


Are all methods virtual in c#?

730


What is data set in c#?

729


Are value types sealed?

725