DataGridItem Headers and index out of range error
Hi all, wondering if anyone can help me with an annoying little problem I'm encountering. I have a datagrid storing characters along with their statistics, if the user selects a character I have a button appearing to link to that character.
However I now have the problem that if the user selects a header to sort the datagrid the button to display character information appears and clicking it results in an index out of range error.
I've tried a simple if " " with no luck and various other quick fix theories all with no such luck.
Thanks in advance!
Kirtan PatelPosted Aug 14, 2009, 9:46 AM
Try
{
}
catch
{
}
as Solution Because this is asp.net application so we can hide things without postbacks as Windows application can do it very fast
Just Enclose your code With Try catch it will be fine :)
Kirtan PatelPosted Aug 14, 2009, 9:25 AM
Here is my Mail Address [email protected] ( include database file also ) :)
will respond you as fast as i can :)
AndrewPosted Aug 14, 2009, 9:15 AM
Kirtan PatelPosted Aug 14, 2009, 9:01 AM