How to add a new row to datagridview programmatically
You can do: or: Another way: From: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.rows.aspx
You can do: or: Another way: From: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.rows.aspx
The trick is to give padding on the td elements, but make an exception for the first (yes, it’s hacky, but sometimes you have to play by the browser’s rules): First-child is relatively well supported: https://developer.mozilla.org/en-US/docs/CSS/:first-child You can use the same reasoning for the horizontal padding by using tr:first-child td. Alternatively, exclude the first column … Read more