column values in datagrid

  • Thread starter Thread starter daisy
  • Start date Start date
D

daisy

Can anyone point me to the syntax on how to fetch
indiviual column values from the current row in a
datagrid on a button click in C# or VB.
 
private void dgSiloer_MouseDown(object
sender, System.Windows.Forms.MouseEventArgs e)
{
try
{

System.Windows.Forms.DataGrid.HitTestInfo
myHitTest;
myHitTest =
dgSiloer.HitTest(e.X,e.Y);

if (myHitTest.Row >= 0)
{
g_ValgtSilo =
dsSiloer1.LOCATION[myHitTest.Row].SILO.ToString();
refreshFields();
}
}
catch(Exception exc)
{
}

}
 
Back
Top