VB.Net DataGrid - Row Add coding questions
Posted on 2007-03-29
I'm looking for a way to smarten up my DataGrid in VB.Net 2005.
On the initial load of data into my DataGrid, I set columns 0 and 1 to ReadOnly, but for a RowEnter event I plan to change the ReadOnlly of Column(0) to False and then back to True again on RowLeaving Event.
This DataGrid has a DataSource of a DataTable in VB.
What I'd like to do is default zero's in all DataGrid columns from index 2-14 so they don't leave these as null values in a DataTable\Column that does not allow null.
Can I set DataGrid cells to a value or do I need to create this row in my DataTable source and then refresh my DataGrid?