For single web element in that row i got index..for multiple column in a single row how to get the index:
IWebElement colelement = driver.FindElement(By.XPath(“//div[@id=’grdBooking’]//table//tr/
th[contains(text(),’Case#’)]”));
String colidx = colelement.GetAttribute(“idx”);
Console.WriteLine(“Colelement index is =” + colidx);
Source: Read More