Dan,
Programmatically, I would change the data in the datasource that binds to
the control, and do a "Refresh()". From a UI point of view, this is
equivalent to going to a cell, changing the data and clicking outside of the
cell. The cell is not considered changed until you move out of it.
Simply:
DG1.DataSource = dataSet1.Tables["foobar"]
....
' Change the data in the dataset
....
' Refresh the data in the datagrid
dataSet1.Refresh
Hope that helps.
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Dan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I have a Datagrid in a simple form that I programmatically modify
> using something like that :
>
> Me.DataGrid1(RowID, ColID) = "blablabla"
>
> But my cell wont refresh unless I click on another cell or move the
> scrollbar of the datagrid... 
>
> I tried everything : .Update, .Refresh, .Invalidate, etc...
>
> How can I refresh it?
>
> Thanks
>
> Daniel