General information
Category:
The Mere Mortals .NET Framework
I am looking at the code below from the help file (and it is the same as in the example provided with MM) and I can not figure it out. So is it just me, or ...
1. First the code checks to see if DataView named dv+ (in this case dvShippers) exists and if not,
2. goes and creates DataView called dvShippersByPhone
Any reasonable explanation or it is just one of those spelling errors ;)?
// Check if the DataView already exists <===1.
DataView dv = (ds.GetDataView("dv" + this.CurrentTableName, this.CurrentTableName));
if (dv == null)
{
// Create a custom DataView sorted by phone
dv = new DataView(ds.Tables["Shippers"]);
dv.Sort = "Phone";
ds.AddDataView(dv, "dvShippersByPhone"); <=== 2.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only