Posts by Bruno B. de Souza • 25 points
4 posts
-
1
votes3
answers838
viewsA: Check Whether Datagridview field of type Datagridviewcheckboxcolumn is marked
A simpler and perhaps more elegant form is: var existeCheckBoxMarcado = MeuDataGridView.Rows.Cast<DataGridViewRow>().Any(row => Convert.ToBoolean(row.Cells[0].FormattedValue)); if…
-
0
votes2
answers184
viewsA: EF - Navigating through Icollection
You will need to access item by item, and this can be done through any loop (for, foreach, while...). Furthermore, in order to establish a 1:N ratio, it doesn’t make much sense to have a collection…
-
0
votes2
answers156
viewsA: Problem adding C#images
The problem is how you pass the image path. For absolute paths, you should use the backslash, getting: if (!File.Exists("C:\\Users\\32-add.png")) MessageBox.Show("");…
-
1
votes1
answer317
viewsA: Pass Aspx page values to Aspx.Cs
As you are working with webforms, the best way would be to use a component like Gridview, which already has events that facilitate this work. In addition, if you prefer to maintain the current…