How can I access then to my dinamic column?
I try this, but doesn't work:
Dim str as String
str = Cstr(dg.SelectedItem.Cells(6).Text)
it says that it's out of range. I count the columns and I have 6 columns and
when I add dinamic column I'll have 7 columns, but I can't access the last
(it's dinamic)
How can I solve this?
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
"Eliyahu Goldin" <(E-Mail Removed)> escreveu na mensagem
news:(E-Mail Removed)...
> QUESTION 1:
> Look at the help for DataGrid.Columns property and the example in the help
> for DataGridColumnCollection.
> A note from the help:
> Although you can programmatically add columns to the Columns collection,
> it is easier to list the columns statically and then use the Visible
> property to show or hide the column.
> Eliyahu
>
> "ruca" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> > I have two different questions to ask:
> >
> > QUESTION 1:
> > Can I create dinamically a column in a datagrid? How?
> > I have a datagrid that must have 5 columns, but in some very special
cases
> I
> > have to add another column. How can I do this in code?
> >
> >
> > QUESTION 2:
> > When I Debug my Web application, the debug is very slow. Changes line
> (step
> > by step) is slow.
> > Can I fix in anyway this problem?
> > I already try to see if any process is running, but I can't find
anything
> > special.
> > Suggestions are welcome.
> >
> >
> > --
> > Programming ASP.NET with VB.NET
> > Thank's (if you try to help me)
> > Hope this help you (if I try to help you)
> > ruca
> >
> >
>
>
|