0

explain th datatable
1.0 1


1.00 / 5, 1 vote
C# tablename User

Id int
Email varchar(500)
Password varchar(500)
Name varchar(500)

DATA IN TABLE IS
Id Email Password Name
1 ali@yahoo.com 1234 ali
2 usman@yahoo.com 1234 usman

i ask you about simply datable working

Label1.text=datatable.Rows[0]["Name"].Tostring();

how it wnat to know about datatable.Rows[0] how it retrieve the name across ali@YAHOO.COM when ali login
and how it retrive the name across usman when usman login

bcz i think 1 ali@yahoo.com 1234 ali // this is row 0
2 usman@yahoo.com 1234 usman // this is row1


then how datatable.row[0] work

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by pankeel
-1

tablename User


Collapse | Copy Code
Id int
Email varchar(500)
Password varchar(500)
Name varchar(500)
DATA IN TABLE IS

Collapse | Copy Code
Id Email Password Name
1 ali@yahoo.com 1234 ali
2 usman@yahoo.com 1234 usman
i ask you about simply how datatable working
is

Collapse | Copy Code
Label1.text=datatable.Rows[0]["Name"].Tostring();for Row ali@yahoo.com 1234 ali
and Label1.Text=datable.Rows[1]["Name"].Tostring(); is for row usman@yahoo.com 1234 usman

Collapse | Copy Code
1 ali@yahoo.com 1234 ali // is this is row 0?

2 usman@yahoo.com 1234 usman // is this is row1?

Edited by umair41: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.