all groups > asp.net datagrid control > october 2005 > threads for october 15 - 21, 2005
Filter by week: 1 2 3 4 5
"Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. "
Posted by Franck at 10/21/2005 10:04:38 AM
Hello,
in a datagrid, in the ItemDataBound event
in some cells a add some javascript that show up an information
strHref.Append("<A onclick=\"popupValid();\">");
strHref.Append("<span style=\"cursor:pointer\">");
strHref.Append(e.Item.Cells[1].Text+"</span></A>");
e.Item.Cells[1].Text=strH... more >>
Optimizing binding
Posted by Tumurbaatar S. at 10/21/2005 12:00:00 AM
All my datagrids need editing, deleting, sorting and paging. Datagrid's view
state is enabled,
but it is disabled it for each DataGridItem after binding. Also, I use
DataAdapter instead of
DataReader because the last one does not work with paging and sorting.
My typical data binding code look... more >>
my DataView won't sort
Posted by bill at 10/20/2005 2:58:25 PM
When I set the Sort on a DataView, it is ignored, and I can't figure out
why. I'm using vb.net.
After I successfully populate the DataView, I set the Sort on a String
column, but it doesn't happen, and consequently my datagrid which is bound
to the DataView doesn't get sorted.
There are no... more >>
Gridview - Row Update Event Not Firing When grid has invisible col
Posted by RickM at 10/20/2005 11:28:10 AM
..net 2.0 Visual Studio 2005 beta 2 Gridview
I am hiding and displaying columns in a gridview based upon user's
selection. The Row Updating event is not firing when I have invisible
TemplateField Columns. If I change all columns to Visible, the event fires.
If I make one column invisible... more >>
Export to Excel
Posted by Magnus Blomberg at 10/20/2005 9:25:41 AM
Hello!
I have a web page (dotnet framework 2.0) with a datagrid that works just
fine.
When the user has collected the data, and this is present in the datagrid, I
would like to enable a button for export to Excel.
If possible, I would also like the asp code to format the Excel sheet so it
lo... more >>
DataGrid Select Button Event not fired
Posted by sathya at 10/19/2005 10:49:02 PM
hi all,
i am creating datagrid , i have added button column in my datagrid ,but
the event for button column is not fired.
i have added buttoncolumn to datagrid as shown below:
ButtonColumn bs = new ButtonColumn();
bs.Text = "select";
bs.ButtonType = ButtonColumnType.PushButton;
DataGrid... more >>
.net 2.0 FormView questions
Posted by Jeronimo Bertran at 10/19/2005 9:48:09 PM
Hello,
I have a couple of questions about the FormView control.
How can I access the controls I add to the ItemTemplate from the code
behind file? For example, I added a button named Button1 to the
ItemTemplate and I want to modify it from the codebehind.
Can I set the pager to appea... more >>
Problem connecting to Oracle database
Posted by Jaime Stuardo at 10/19/2005 5:39:04 AM
Hi all...
I have an ASP.NET application where I placed a DataSource control connected
to an Oracle 7.3.4 database using MSDAORA provider.
When I configured the connection string I chose Oracle Database as the data
source and .NET Framework Data Provider for OLEDB as the data provider.
I... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I databind a TextBox in EditItemTemplate?
Posted by morrisb at 10/19/2005 5:05:02 AM
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 Ed... more >>
Update Custom Collection that is bound to DataGrid made up of Custom COlumns
Posted by Terry Holland at 10/19/2005 12:00:00 AM
I recieved some very useful help from Steven Cheng in an earlier post in
this group entitled 'Dynamically create datagrid columns' and am now
looking for some help to progress things.
With the help I was given I was able to create a web user control that
dynamically created a datagrid that... more >>
and null fields in a datagrid
Posted by Tina at 10/18/2005 3:58:47 PM
in the itemDatabound event of a datagrid, both null fields and blank string
come through as in the e.items.cells field. Is there anyway to tell
them apart?
Thanks,
T
... more >>
datagrid checkbox list edit item not working
Posted by cindy at 10/18/2005 12:40:13 PM
I am using asp template columns. I display box values from a lookup table.
The datagrid displays field "bookid" and the checkbox displays "category"
field for the book. The category field is a string concatenation of category
values such as CT,MR,NM or just CT
When the grid goes into edit ... more >>
What to do about checkboxes?
Posted by et at 10/18/2005 9:03:14 AM
I have a grid with odds and ends of data, some of the fields are true/false
checkboxes. The users don't like the fact that the checkboxes are
modifiable even when not in edit mode.
What does everyone else do about this? Disable it? change it to display
Yes/No, True/False, or something el... more >>
plz give me this code in C#
Posted by narula srinivas at 10/17/2005 9:33:21 AM
hi friends,
thanks for helping in my previous problem.could anyone take this
site as and give the c# code for the concerned related requirement.i am
getting lot of errors.
http://www.koolsoft.com/DataGridCheckboxes.aspx
thanks®ards
srinivas.N... more >>
DataAdapter question
Posted by Eric A. Johnson at 10/17/2005 5:43:47 AM
I'm using ADO style. I have an Access database with four tables that I will
want to do queries on. I will want to do queries on all four tables, at
least individually, and possibly at the same time (using "INNER JOIN"). My
question: Is it better to have four individual DataAdapters, one for ... more >>
Define a filter based on record value
Posted by PaulNaude at 10/17/2005 1:46:05 AM
I have a datagrid with two columns visible, both being dropdown boxes linked
to other tables.
Is it possible to filter the datasource of the second column, based on the
value chosen in the first column?
... more >>
|