Hi
It looks to me like since I am clicking out or tabbing onto another row, the mouse down or tab event is interfering with selecting a row. I tried having a command button with the selected.true property set and that works fine. How do I get around this issue.
Sonny
User Profile
Collapse
-
Unable to set focus to a particular cell using the datagridview
Hi
I have an issue wherein when the RowLeave event is trigerred ina datagridview, I want to set the focus back to the row where the validation failed. But the cell focus goes to the cell i clicked or tabbed into even though I have set the focus back to the rouge row with a .selected = true property.
I have tried the following with no success...
iRowNumber = timesheetdataGr idView.CurrentC ell.RowIndex;... -
svaradan started a topic Is it possible to associate a datasource to a cell and not to the entire column?in .NETIs it possible to associate a datasource to a cell and not to the entire column?
Hi
Is it possible to associate a datasource in a datagridview combobox to one cell and not to the entire column? If so how would I go about doing it?
Sonny -
Thanks for the information. It still is not helping me since my current situation is this.
I have a datagridview which has two combobox columns. I want the items listed and available for selection to change on one combobox to change based on the item selected on the other.
Hopefully this gives a clearer picture.
And thanks for helping me out with this issue.Leave a comment:
-
svaradan started a topic Can each combobox in a datagridview column have unique values and if so how?in .NETCan each combobox in a datagridview column have unique values and if so how?
Hi
I have a situation where in I have two combo boxes in a datagridview control. The first combo box items are all static. But the second combo box items need to change based on the first combo box value selected. The problem I am running into is if I bind the datasource to the column the values are all the same all the time. Please help.
Sonny -
How to create an array of datasets?
Hi
The following code does not work, where in it says that the dataset is never assigned to:
private DataSet [] dsSomething;
bool bsomething = true;
int i=0;
if (bsomething == false)
{
dsSomething[i] = new DataSet("Someth ing");
i++;
}
Any and all suggestions is apprecited.
No activity results to display
Show More
Leave a comment: