Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
morrisb #1
How do I databind a TextBox in EditItemTemplate?
Simply put - I want the data in my rows to appear in various controls when I
click Edit.
My datagrid contains several template columns and I'm using
DataBinder.Eval(Container.DataItem, fieldname) to bind data in my
ItemTemplates.
However, I can't seem to use it for the TextBoxes in my EditItemTemplates.
All the examples I can find say to set the Text property - but that does not
seem to exist anymore and generates a schema error if I manually enter it.
How do I do this? Thanks!
morrisb Guest
-
EditItemTemplate FindControls
Hi, What I am trying to do is save the values from the ItemTemplate textboxs, which I already do and when I go into Edit mode insert values into... -
how do i access a dropdownlists selected value in a datagrid edititemtemplate column from the selectedindexchanged event of another dropdownlist in a datagrid edititemtemplate column
i am trying to trap the value of one dropdownlist (in a datagrid edititemtemplate column) at the time its selectedindexchanged event fires and use... -
Problem with textbox in template column and databind
I am having a problem with the datagrid and a template column that is giving me fits. In the HTML, I have the grid defined at design time as just... -
BUG in DataBind? After .DataBind there are more DataGrid Items than DataSet Rows!
Consider: Private Sub BindData(ByRef objDataSet As DataSet) Dim x% = DataGrid_Report.Items.Count() Dim y% = objDataSet.Tables(0).Rows.Count() '... -
EditItemTemplate
I have a managed to get the OnEditCommand to run on my datagrid but ALL the columns become editable. I dont want this. Is it possible for only one... -
Patrick.O.Ige #2
Re: How do I databind a TextBox in EditItemTemplate?
Try posting some snippet code!
You can just bind it to the text property and you will get
what you want
Patrick
"morrisb" <morrisb@discussions.microsoft.com> wrote in message
news:8AD0AAF6-675E-4DAD-9ABF-7616372D91CD@microsoft.com...I> Simply put - I want the data in my rows to appear in various controls whennot> click Edit.
>
> My datagrid contains several template columns and I'm using
> DataBinder.Eval(Container.DataItem, fieldname) to bind data in my
> ItemTemplates.
>
> However, I can't seem to use it for the TextBoxes in my EditItemTemplates.
> All the examples I can find say to set the Text property - but that does> seem to exist anymore and generates a schema error if I manually enter it.
>
> How do I do this? Thanks!
Patrick.O.Ige Guest



Reply With Quote

