Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving a field value from a Dataset
Message
From
25/07/2002 13:40:00
 
 
To
25/07/2002 13:07:31
Jorge Haro
Independent Consultant
Juarez, Mexico
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00682350
Message ID:
00682634
Views:
25
Jorge,

>>So, how does one work with data in ADO.NET?, I mean, what object gets manipulated?, how do you assign a value to a field?, like:
>
>
>  dsCustomers.Customers.Rows[0].cCustName = cValue; // ???
>


Yeah, that'll work just fine, although you'll more than likely data-bind a text object on your form to the data objects columns, so you won't actually need to assign the text box's value to the DataSet's columns. You can do that in the property sheet or in code. Oh yeah, I forgot you're not using the IDE. Hmmm ... well then, I guess you'll need to data-bind in code. There's examples in various help stuff on how to do that.


~~Bonnie



>Hi Bonnie, I'm using only the free download of the SDK for now, I don't think that's available to me, unless there's something like a command line utility. C# for about $100 (even less for ugrades) seems like a bargain, so I should pick it up soon. But thanks, I'll keep it in mind for when I have the full IDE.
>
>So, how does one work with data in ADO.NET?, I mean, what object gets manipulated?, how do you assign a value to a field?, like:
>
>
>  dsCustomers.Customers.Rows[0].cCustName = cValue; // ???
>
>
>I'll keep on reading the docs in the mean time, thanks!
>
>>Jorge,
>>
>>In addition to Cathi's reply, I'd like to add something and hope it >doesn't further confuse you. Another option when using DataSets is to >have .NET generate a typed dataset for you (right click in your .xsd >and click on the Generate option). The syntax is easier to handle. >Your example would then be:
>>
>>
>>  dsCustomers.Customers.Rows[0].cCustName.ToString();
>>
>>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform