AltheaFriedlerc
New Member
I am trying to create multiple asp gridViews dynamically based on a dynamic data set. Each row of this data set contains a string of values "Foo1, Foo2, Foo3, Foo4". An XML representation of the data set would look something like:\[code\]<Head> <Grid Name="1"> <Values> <val Name="Foo1" /> <val Name="Foo2" /> <val Name="Foo3" /> <val Name="Foo4" /> </Values> <Items> <item Name="Bar1" Vals="Foo1,Foo3,Foo4" /> <item Name="Bar2" Vals="Foo1,Foo2" /> <item Name="Bar3" Vals="Foo1,Foo2,Foo3,Foo4" /> </Items> </Grid> <Grid Name="2"> <Values> <val Name="Foo1" /> <val Name="Foo2" /> <val Name="Foo3" /> </Values> <Items> <item Name="Bar1" Vals="Foo1,Foo3" /> <item Name="Bar2" Vals="Foo1,Foo2" /> <item Name="Bar3" Vals="Foo1,Foo2,Foo3" /> </Items> </Grid> </Head>\[/code\]For this example would look something like:| Name | Foo1 | Foo2 | Foo3 | Foo4 || Bar1 | Check | No Check | Check | Check || Bar2 | Check | Check | No | No |I want to have the checkboxes checked or unchecked based on the string contents. I also want to be able to edit that checkbox and manipulate the string. In other words if I click the edit button in my gridview and check the checkbox for Foo3, I want Foo3 to be added or removed from the corresponding string in my dataset.