Hi,
You won't be able to do exactly that. With each column you only got one DataField, which means you only get one data variable. Usually you would give this to the link text. So in your case you should use a ButtonColumn, with its type set to LinkButton and leave its Text field blank, but set its DataField property. This DataField will be used to populate the link text.
The second argument, which would be your href id query string argument, is supplied through the Grid's KeyField property. By setting the Grid's KeyField property, you would carry the key field value down to the client side, which can be retrieved later by JavaScript call.
Once those are done, you can handle the Grid's ClientSideOnItemCommand, within that event handler you can then do:
Code: JavaScript
function itemcommand_handler(
grid, itemIndex, colIndex, commandName)
{
window.open(
"mypage.aspx?id=" + grid.getItem(itemIndex).getKey(),
"_self");
}
Hope this helps.
Thanks