Hardik Zala

Hardik Zala

  • 1.6k
  • 60
  • 444

Gridview CurrRowChanged Event

Mar 22 2018 11:22 PM
This is one of the function in a huge .Net application coded in C# (3.5 Framework)
 
Problem : Unable to raise CurrRowChanged event on from grid view only when I fill the grid data using thread.
 
The thread must be called from ShowDetailForSelection(),(Can't be changed)
 
private void rinGrVid_CurrRowChanged(object source, CellEventArgs e)
{
//Some Code
}
public void ShowDetailForSelection()
{
t1 = new Thread(FillData);
t1.Start();
}
void FillData()
{
//Fill data in rinGrVid
}
 
When I use the code like below, Without thread, it works fine...
 
private void rinGrVid_CurrRowChanged(object source, CellEventArgs e)
{
//Some Code
}
public void ShowDetailForSelection()
{
FillData();
}
void FillData()
{
//Fill data in rinGrVid
}