I want this code to write a true value into third column.
How?
DataRow[] Urows = Adb.dataSetAccounts.UsersGroups.Select("UserID='" +
rowUsers.UserID.ToString() + "'" );
foreach ( DataSetAccounts.UsersGroupsRow rows in Urows )
{
DataSetAccounts.GroupsRow group =
Adb.dataSetAccounts.Groups.FindByGroupID( rows.GroupID );
if ( group != null )
{
if (group.GroupID == rows.GroupID)
{
for(int Grow = 1; Grow < gridGroups.Grid.Model.RowCount; ++Grow)
{
DataColumn checkboxColumn = Adb.dataSetAccounts.Groups.Columns["Name"];
group[checkboxColumn] = true; ** - here I would have to define in witch
column is a true value.
}
}
}
}