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 c# most used for?

562


What is c# used for?

511


What is the delegate in c#?

492


Does the system.exception class have any cool features?

502


How do I do a case-insensitive string comparison?

515






What is xml serializer?

492


What is the use of ienumerable in c#?

549


Why do we need reflection in c#?

484


What is the use of iqueryable in c#?

475


To catch any possible exception What is the C# syntax written ?

538


What is difference between array and collection?

466


What does dbml mean in texting?

512


Can c# inherit multiple classes?

508


Why reflection is used in c#?

493


Can we have multiple threads in one app domain?

519