Forms Data Controls :: Manage A Datagrid Within Another?

Dec 28, 2010

I have a table in my database with three fields: COURSE_ID, PERC, DATE.I need to display sets of rows based on the date, the number of rows in every set will be known at run time, the same as the number of sets, so I was thinking about adding two buttons (one to add a set and another to add rows in that set)

I know that working with GridViews will do, but do not know how exactly, maybe one gridview for the sets and a second gridview (inside the first one) for the rows inside the sets.

<Add Set>

<Add Row>

Set 1

COURSE_ID PERC DATE

2 10 2010-12-02

3 90 2010-12-02

Set 2

COURSE_ID PERC DATE

3 90 2010-12-10

4 10 2010-12-10

Set 3

COURSE_ID PERC DATE

3 80 2010-12-15

4 5 2010-12-15

5 15 2010-12-15

Set 4

COURSE_ID PERC DATE

2 100 2010-12-18

View 2 Replies


Similar Messages:

Forms Data Controls :: How To Filter Child Datagrid On Parent Datagrid Row Select

Apr 6, 2010

I have 2 grids gvParent & gvChild I would like to filter gvChild when a row is selected in gvParent the linking fields are contractNo

I added a column for selecting:

<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select"
OnClick="LinkButton1_Click" Text="Select"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>

I know how to handle the filtering of the grid (create a criteria and set to rowfilter of the dataview) But, I dont know how to get the value of the column of the selected row.

View 5 Replies

Forms Data Controls :: Want To Capture - Datagrid On Clcik On Datagrid Row Value Using C#?

Mar 4, 2011

I have Datagrid , i want to clcik on row and get data in textbox , but my textbox is FreeTextBox control,i tried to use javascript but work for asp.net control not working for freetext box control, how i can capture this code is sample code but it work for asp.net control but not working for my freetextbox

[Code]....

View 1 Replies

Forms Data Controls :: How To DataGrid SelectIndex Inside A DataGrid

Sep 22, 2010

Simply put... I want to duplicate the example found at this link, in VB.net rather than C#.

[URL]

I would like the selectedvalue of the dropdown to display additional data base on its selection in multiple text boxes.

I have tried using the DropDownList OnSelectedIndexChanged property, within a DataGrid EditiItemTemplate, but I cannot retrieve data from the selection. (AutoPostBack is "True"). I can however use a button onclick event to fire a "prre-defined" selection value.

View 2 Replies

Forms Data Controls :: How To Find DataGrid Row From Another DataGrid

May 27, 2010

I have 2 datagrid (using .net 1.1). I need to access column of second grid ( i need to make a column of second grid as disabled) when i click "Cancel" link button in First Grid. How can this be done?

View 7 Replies

Forms Data Controls :: Datagrid With Column Choose To Choose Columns Dynamically Using DataGrid With Object Data Sour

Sep 30, 2010

I have "Order" object with Columns Ticket,OTP and CustomerName etc.Intially on DataGrid, I'm binding Ticket only , when user clicks on "Column Chooser" button, another windows appears to pickup CustomerName,OTP columns to add specified column dynamically on Datagrid. Environment : Asp.net ,C# with Object Data source

Public Class Order
{
publc void Order()
{
}
public string Ticket
{
get
{
return this.strTicket;
}
set
{
this.strTicket = value;
}
}
public string OtpNumber
{
get
{
return this.strOtpNumber;
}
set
{
this.strOtpNumber = value;
}
}
public string CustomerName
{
get
{
return this.strCustomer;
}
set
{
this.strCustomer = value;
}
}
}
}

View 1 Replies

Forms Data Controls :: How To Manage Condition In Presentation

May 29, 2010

I have a date base with a table named 'movies'. I want to take information on my database. I use a SQLDataSource. For my presentation, I use a repeater. Here is my code :

[Code]....

But if for exemple, 'champ1' is empty in my database, i don't want to print it in the result of my query ! But i can't arrive ...

View 9 Replies

Forms Data Controls :: How To Manage The Local Database

Aug 16, 2010

On my web page I'm trying to manage a tabular control of some kind that supports inserting. The data will be inserted locally on the page, with no connection to any kind of DB. The inserted data will exist only on this page and will be lost after navigatingto another page.A table that shows all the added rows and has an empty row for inserting is perfect.

View 5 Replies

Forms Data Controls :: Manage Format Of String At Run Time?

Jan 15, 2011

i have problem with manging format of string at run time

actually i have infomation in tabular form , a i am accessing that in coding in string fromat and send it by mail but when i send it shows html coding and not view in tabular .

View 4 Replies

Forms Data Controls :: How To Manage Left Navigation Control Like Msdn Library

Aug 27, 2010

I am trying to workaround a case where I have to design my page similar like msdn library page whew left nevigation is collepseble as well as dumemic extemded as per tje wodtj of tree item in tree .

View 1 Replies

Forms Data Controls :: Manage The Gridview Columns Especially At Time Of Edit The Records?

Apr 16, 2010

i use the grid view so edit & Delete the records. using

<asp:CommandField ShowEditButton="True" />
<asp:CommandField ShowDeleteButton="True" />

But due to more fields the gridview is out of the Master page.

So how can I manage the gridview columns especially at time of edit the records.

View 5 Replies

Web Forms :: How To Assign Values Of Data Table To A Datagrid When Datagrid Has Data List And Text Boxes

Jan 8, 2010

I had called the data from query to data table and now i have a gridview in which i am using one datalist and 2 text boxes and and reming coloumns are bounded iahve to assiaign them values which datatable have either null or any value.

View 2 Replies

DataSource Controls :: Manage A Datareader With Data Field?

Mar 25, 2010

i have a datareader who read from data field from sql server, this field is datetime format now, when this field is null it returns 01/01/1900!! how can i manage it without if or some check, is there a property in datareader or sqlserver properties who i can return null value from datetime field?

View 4 Replies

DataSource Controls :: Manage A Dropdownlist Though Data Source?

Oct 27, 2010

i am a new user of asp.net and i am a learner so i just want to connect two dropdownlist to data souce and i want that the list item of second dropdown is changed according to change of selected item of first dropdown.

i have connect it to data source successfully it getting chaged items but it happance only when its load then if i select the next item of first one it would not work properly.

View 3 Replies

DataSource Controls :: Populating Data From A Stored Procedure / How To Manage

Apr 11, 2010

I'm looking for a steer on how to go about running stored procs efficiently.

I have a current requirement to populate a control, so I have all the specific data i.e the parameter value I need to pass and the control I want to populate, plus generic data such as SqlConnection etc.

I'd like to be able to call, say, "MyStoredProc". MyStoredProc would contain all the necessary information to run the proc, but then pass onto a method, say, GetSpData, which contained all the generic stuff about running stored procs.

Then when setting up MyStoredProc2 I could do without repeating a lot of the original function

Im I barking up the wrong tree or is there an efficient way of managing this kind of situation.

View 2 Replies

Forms Data Controls :: Datagrid View Control Producing Duplicate Data Results When Data Is Cached?

Oct 10, 2010

I have a datagridview control that I'm using to display cache data to the end used on a web form. The issue that I'm having is that every time I re-run the application, and the cache data is re-generated... it loads duplicate data that's being displayed to the end user. I can't seem to figure out how to keep this from happening.

What I would like to have happen is that only unique data rows be returned and cached for the end user. Unless there are new data rows on the database that needs to be included in the cache data results...the previous data results should not be duplicated. I've tried to change a few properties on the datagridview control, but nothing seem to keep this from happening.

[code]....

View 3 Replies

Forms Data Controls :: Set Value To Datagrid Using Vb.net?

Nov 10, 2010

How to set value to datagrid using vb.net? only for specific column but is for every row.

View 3 Replies

Forms Data Controls :: Insert The Data In Database From Controls Inside Datagrid

Jan 11, 2010

I have a problem there that is i want to insert the data in database from datagrid but i have various controls like textbox and datalist in grid view inside datagrid now i want to insert the values of that text box and datalist in database how i can do this.

View 5 Replies

Forms Data Controls :: How To Dd A Button In Datagrid

Aug 18, 2010

I have to include a button 'del' in my datagrid. I already have two buttons 'savechanges' and 'cancel'. how to include one more option saying DEL in the same datagrid?

View 4 Replies

Forms Data Controls :: Datagrid Row Selection?

May 30, 2010

I am new to asp.net programming!!I have a datGrid Control on my web page and am able to load the data into the datagridafter loading the data to the grid , when i select a row from the grid I am loading those values into the text boxes that are present on Now what the problem , if my grid has say 20 records and having the vertical scroll to view all the 20 rows.

When i want to show the data of the 16 row ( say in this instance ) after scrolling the down for the 16 row ...after selecting the 16 row the data is getting posted to the corresponding textboxes ,but the here the data is getting scrolled to top after selection and not able to see the seleted row , for this i need to scroll down again!!!

View 4 Replies

Forms Data Controls :: DataGrid Only Get The HeaderTex?

Aug 24, 2010

I have something

[Code]....

in back I have

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack() Then
LoadDataGrid1()
End If
End Sub
Private Sub LoadDataGrid1()
Dim tmpds As New DataSet
Dim tmpdv As New DataView
tmpds = boNews.getSelectedList(1, Format(Now(), "yyyy/MM/dd"))
' tmpds = boNews.getTodaysList(Format(Now(), "yyyy/MM/dd"))
tmpdv = New DataView(tmpds.Tables(0))
DataGrid1.DataSource = tmpdv
DataGrid1.DataBind()
End Sub

I only get the HeaderText not the BoundColumn.

View 3 Replies

Forms Data Controls :: Moving Datagrid's Row Up And Down?

Nov 4, 2010

how to reorder a datadrid, by moving one row up or down.

View 1 Replies

Forms Data Controls :: Highliting Row In DataGrid?

Mar 24, 2011

I notice that the DataGrid control has properties for "SelectedRow". What I don't understand is how to select one. Nothing looks clickable when I'm viewing my datagrid populated with data, it just looks like a static table of information.I need two things to happen. 1, as they move their cursor over the rows, I need the row to highlight. 2, when they click a row, I need to fire an event so I can run an SQL query based on the row they clicked?2 questions.1. Is it possible for a DataGrid to do this.2. If it's not possible, what should I be using instead?

View 20 Replies

Forms Data Controls :: Datagrid Does Not Respond?

Sep 2, 2010

I am contineously facing this problem Datagrid does not respond to any sorting, dataview filtering, or paging events.

View 4 Replies

Forms Data Controls :: Delete Last Row In A Datagrid?

Aug 25, 2010

I have to delete my last row in a datagrid.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved