Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do While Seek()... Enddo
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01184819
Message ID:
01185317
Views:
10
Hi Einar.
I've been trying to find how to SEEK my DataView, but I could'nt find a way. So I did this.
 SrcDataAdapter.Fill(SrcDataSet,"customer");

 DataView myDataView = new DataView(SrcDataSet.Tables[0]);

 myDataView.RowFilter = "cust_id = '10001'";

 int ncnt = myDataView.Count;
I know it's probably not the best thing, but it works.

How do I create an index on my DataView to do a SEEK() on it?

TIA.


>>Is there an simple elegant way to do the following in C#?
>>
>>
>>i=1
>>DO WHILE SEEK(i, 'testTbl', 'testInx')
>>    i = i + 1
>>ENDDO
>>
>>RETURN i
>>
>>
>>TIA
>
>
>private int fubar()
>{
>	int i = 1;
>	while (SEEK(i, "testTbl", "testInx"))
>	{
>		i++;
>	}
>	return i;
>}
>
The American Republic will endure, until politicians realize they can bribe the people with their own money.
- Alexis de Tocqueville

No man’s life, liberty, or property is safe while the legislature is in session.
– Mark Twain (1866)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform