Hi there,I've some problem using datagridview..
So like this...
I've this code:
private void frmOwners_Load(object sender, System.EventArgs e)
{
this.FillGrid();
//after this is done, there are fired 2 more SelectionChanged events
}
private void FillGrid()
{
DataTable myDt = new DataTable();
myDt = DBEngine.GetAllRecords(); //its my own method for getting data...
myDt.Columns[0].Column.ColumnMapping = MappingType.Hidden;
myDt.Columns

.Column.ColumnMapping = MappingType.Hidden;
myDt.Columns[7].Column.ColumnMapping = MappingType.Hidden;
myDataGrid.DataSource = myDt; //This fires the first selectionChanged method...
}
private void myDataGrid_SelectionChanged(object sender, EventArgs e)
{
//here is some code, but it's fired 3 times
}
The last row from code fires the selectionchanged method, but, it's fired 3times one by one...
Does anyone know why???
Is it because the 3 columnmappings?
THX for any help
metaller
PS: Oh, i forgot... using XPs, VS2005, NET2.0