Hi,
I am not sure you can have an unbound column - you should probably need to
create an underlying bogus column in the data source. But, assuming unbound
columns are possible, you can access DataGrid values by using its Item
property. The trick is that this property is visible as an indexer in C#.
Therefore your code checking if a row has been ticked will look like:
bool checked = theGrid[rowIndex, checkBoxColumnIndex];
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Jean Carlo" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Hello guys
I`m developing a windows form that contain one Datagrid.
In this datagrid I insert a checkBox Column. I need to get
all rows where checkbox is checked by user.
How do I get this rows ?
I can?t use the DataSource of Datagrid because I don?t
have a Column source for checkBox in my DataSource.
Is there any method in datagrid to loop in datagrid rows ?
Tks a lot.
Jean Carlo Mendes