Re: DataView RowFilter: Index was outside the bounds of the array.
From: Marko Žnidar (marko.znidar_at_triera.net)
Date: 10/11/04
- Next message: q_at_q.com: "Re: C# Pattern for shadowing member variables?"
- Previous message: q_at_q.com: "Re: can a file exist in ram?"
- In reply to: iCeCLoW: "DataView RowFilter: Index was outside the bounds of the array."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 11 Oct 2004 09:04:39 +0200
Hey there.
I dont know why this happens i get the same exception in datagrid in my code
i added :
i = customDataGrid1.CurrentRowIndex;
if (i==-1)
return; // skip the exception
Did u notice when u set your datagrid cells to read-only this does not
happen ?
"iCeCLoW" <iCeCLoW@discussions.microsoft.com> je napisal v sporočilo
news:B126EBFA-E5D9-4929-9709-A638E9A22165@microsoft.com ...
> Hi there,
> I´m using the rowFilter property for filtering the rows in a
> DataView
> object. If the filter is set to an inexistent value , that is, after
> filtering i have 0 rows in the DataView, and I try to re-show all the
> rows
> again by setting rowFilter = "", after setting the rowStateFilter i
> obtain
> the "Index was outside the bounds of the array",.
> If the dataview is not empty this code works fine. Here is the code:
>
> currentView.RowFilter = stringFilter;
>
> currentView.RowStateFilter = System.Data.DataViewRowState.CurrentRows;
>
> if (currentView.Count == 0)
> {
> currentView.RowFilter = "";
>
> }
>
> Application.DoEvents();
- Next message: q_at_q.com: "Re: C# Pattern for shadowing member variables?"
- Previous message: q_at_q.com: "Re: can a file exist in ram?"
- In reply to: iCeCLoW: "DataView RowFilter: Index was outside the bounds of the array."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|