Hi There,
I have a datagridview control that I do the following to.
I load a dataset with data from a SQL database then I add an empty datarow as the first row. This empty row i will use for unputting the search text when the datagridview is in runtime. So you can search the database from within the datagridview if the first result isn't what you want.
Now the first row needs to be editable but the rest of the rows need to be read only. This is working but only after I performed a search in the empty row. It looks like when the control is first initialized the SetDialogDimensions sub(I have created which sets the dimensions for the dialog) isn't performed.
I have already tried Datagridview.Update en refresh but this doesn't work.
Is there any other event i can trigger to make the SetDialogDimensions work?
Thanks,
feurich
I have a datagridview control that I do the following to.
I load a dataset with data from a SQL database then I add an empty datarow as the first row. This empty row i will use for unputting the search text when the datagridview is in runtime. So you can search the database from within the datagridview if the first result isn't what you want.
Now the first row needs to be editable but the rest of the rows need to be read only. This is working but only after I performed a search in the empty row. It looks like when the control is first initialized the SetDialogDimensions sub(I have created which sets the dimensions for the dialog) isn't performed.
I have already tried Datagridview.Update en refresh but this doesn't work.
Is there any other event i can trigger to make the SetDialogDimensions work?
Thanks,
feurich