JavaScript ColumnName WebGrid

4 replies. Last post: October 29, 2009 5:48 AM by Attila Tello
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Attila TelloMember

Hello,

I'm having some trouble figuring it out... I know that I need to do this code to get WebGrid's column name by selecting a cell:

var grid = ISGetObject("WebGrid1");
var rowElm = grid.GetSelectedObject().GetRowObject().GetElement();
var columnName = wgGetColNameByCell(rowElm.cells[3]);
alert(columnName);

But... how can I do it without knowing the index for "3" ? I mean, I need to get that number too...

rowElm.cells[3]


Thank you

Sorry if not well explained... but I need to leave know.

All times are GMT -5. The time now is 1:57 PM.
Previous Next