hiI have a problem I have a webgrid as a user control and have the user control dropped into an aspx page, on the aspx page below the user control (ultrawebgrid) i have a button and i want to delete all selected rows on the grid by clicking on the button on the aspx page im trying to use the igtbl_deleteSelRows("UltraWebGrid1") like this onclick="igtbl_deleteSelRows("MyGridName") but it just doesnt work and gives me a complilation error "To many literal characters. If i hit the Delete button on my keyboard the rows selected are deleted so i basically want to replicate this on click of my Button which is on the parent page. How can i do this ?
thanks
Hello,
The error you are getting is a ASP.NET generic compilcation error, because there are several double quotes (") in a sequence.
The resolution would be to call a javascript function which calls the respective grid one. Example:
onclick="deleteGridRow()"
<script type="text/javascript">
function deleteGridRow()
{
igtlb_deleteSelRows("<%= UltraWebGrid.ClientID %>");
}
</script>
Hope this helps.