Dataset
-
I my dataset there are 100 records, how to get the records between 5 to 10 If you have the example please Paste it. Mkanchha
Mkanchha wrote:
I my dataset there are 100 records
Do you mean 100 tables. ? :confused: A dataset can contain tables. But not rows. I assume that you have a datatable that contains 100 records and you want to take records between 5 to 10. So the code could be something like this
for(int i=5;i<=10;i++)
{
Response.Write(YourDs.Tables[TableName].Rows[i][YourColumnName].ToString());
}Navaneeth My Website
-
Mkanchha wrote:
I my dataset there are 100 records
Do you mean 100 tables. ? :confused: A dataset can contain tables. But not rows. I assume that you have a datatable that contains 100 records and you want to take records between 5 to 10. So the code could be something like this
for(int i=5;i<=10;i++)
{
Response.Write(YourDs.Tables[TableName].Rows[i][YourColumnName].ToString());
}Navaneeth My Website
Navaneeth. wrote:
A dataset can contain tables. But not rows.
I think he want to say that Dataset contains 100 records means indirectly Dataset Contains one table which have 100 rows so !!! posted code is right :omg:
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
Navaneeth. wrote:
A dataset can contain tables. But not rows.
I think he want to say that Dataset contains 100 records means indirectly Dataset Contains one table which have 100 rows so !!! posted code is right :omg:
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
People got confusion between datasets and tables.. :laugh:
Navaneeth My Website