Forms Data Controls :: Show The Another Grid In The Same Column?
Jan 23, 2011I have a gridview and in this grid one link button "view" is in each row
when we click on view button we want to show the another grid in the same column
I have a gridview and in this grid one link button "view" is in each row
when we click on view button we want to show the another grid in the same column
I have an entity "Order", which contains a set of states. Every state has date and name.
I want show grid with all orders and in grid one column with last state of order. But I dont understand how to do it.
I have gridview and want to show datalist in grid view view column on click of linkbutton show.
[Code]....
below data are getting from the db
COL1 Col2
a b
c d
i want to bind the col1 and col2 value in one template field column inside gridview .is this possible means how to do this below is the format i expected. i don;t want to do this in db ..
COL
a(b)
c(d)
i have a grid view with some coulmns like Name,Phone no etc with Edit,Delete column in grid view. I click a row in grid view to Edit,it goes another page where i can edit all fields .Once i update i redirect the page to gridview. I want the grid view to remain in that particular page say 4 of the grid view
View 5 RepliesI have a boundcolumn that outputs string numbers. I have another column of checkboxes next to it. I need to have it so that when a user checks off a check box the value stored in the string column to the left is then plugged into a function on the server. How can I acheive this?Here is my code:
[Code]....
[Code]....
I have class Person, having two properties First Name and Last Name, if I set array of person as Data Source to GridView how can I show both First Name and Last Name in one column?/
View 2 RepliesIn gridview I am able to sort on 1 column as mentioned below, I want to add one more column in sorting, what is the best way to do this,
[Code]....
how to Add images in column but the column have data and the images will added with data but each data in cell have image
Example
i have phone and there is
Missed Call
Incoming Call
Outgoing Call
in same column
how to add image per data cell
How add programatily or dynamic column in grid view
i have an sql table of 3 colums
ID,Product,Week
every time i insert a a row inmy database table
i want to add this column to gridview
in another way gridview will be expandable
this is the layout of the grid:
ID ProductName Week1
Second time i added week2 to database row grid layout like this:
ID ProductName Week1 Week2 (here i want to add week2 column because a new row is inserted to my sql table)
grid now have 5 columns (the fifth is week5)
ID ProductName Week1 Week2 week5
i have a grid view myGridView. I populate this gridview in the page load event as:
myClass newObj = new myClass();
myGridView.datasource = newObj.getItems();
myGridView.databind();
Now I wanted to hide some of the columns of the grid view. How I can do that?
I need to add dynamic header column to grid Urgent from database table
how can i achieve this
my gridview should be expandable horizantally
I am displaying some data in a grid view. I want to add another column in the grid which displays a check box for each row in the grid.
1. How do I give a new name to each textbox? example could be corresponding Case No value could be the text box name.
2. I have a button to read what checkboxes have been checked and initialize a string accordingly. For each checkbox checked it should add the corresponding row's "case no" value to a string.
[code]....
I want to select the row of telerik radgrid and get the value of column 1For thi can't use select or deselect columns, Here i want to select row by clicking only.here I also require code to get the value of column 1 of selected row
View 4 Replieshow to display the sum of the grid values (column).
I have 2 datagrids and i want to show the total of the values in a particular grid column.
in a column, each row has vaules E.g. 4 , 6, 7 etc .
I want to show them in a label as the total of the above ie, 17
I'm currently binding a simple grid and show. And a separate dropdown and show. Now I want to place dropdown in grid and bind also I will able to change value of dropdown and save.Problem in grid binding drop down not able to find datasource.my code as -
<asp:TemplateField HeaderText="REPORTING TO" Visible ="true" SortExpression="reporting_to">
<ItemTemplate>
<asp:Label ID="Lnk_ReportingTo" unat="server" text="<%# bind('reporting_to' ) %>" ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
//Binding grid
public void BindData()
{
//Calling To Dal From BLL LAYER
DataSet ds = musergroupBLL.GetUserGroup(0, UserFk, 0);
Grd_UserRole.DataSource = ds;
Grd_UserRole.DataBind();
}
For dropdown fill in page on .aspx
<asp:DropDownList ID="DDManager" runat="server" onselectedindexchanged="DDManager_SelectedIndexChanged"></asp:DropDownList>
On .cs
protected void FillDD()
{
DataSet ds = MUsrBll.GetUser(MUsrolEnt);
DDManager.DataSource = ds;
DDManager.DataTextField = "usr_id";
DDManager.DataValueField = "usr_PK";
DDManager.DataBind();
}
Till here every thing is workingfor simple grid.
<asp:TemplateField HeaderText="REPORTING TO" Visible ="true" SortExpression="reporting_to">
<ItemTemplate>
<asp:Label ID="Lnk_ReportingTo" unat="server" text="<%# bind('reporting_to' ) %>" ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
Now changing above code from below aspx code for dropdown place in grid. But not getting how to call datasource and selected value in grid. Data source is same as FillDD()function above for dropdown.
<asp:TemplateField HeaderText="REPORTING TO" Visible ="true" SortExpression="reporting_to">
<ItemTemplate>
<asp:DropDownList ID="Lnk_ReportingTo111" SelectedValue='<%# bind('reporting_to' )%>' DataSource = "<%# bind('usr_PK' )%>" DataTextField = "usr_id" DataValueField = "usr_PK" runat="server" ></asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
I found code [URL] that allows multiple-row inserts, and tried to convert it to vb.net. I can't get the blank grid with 5 rows to show up -- for some reason the datasource won't bind.
[Code]....
Code gridview:
[Code]....
i am using grid view when i define one of my culomns in sql data base as image then i can't put jpg image in that culomn so i can show this in grid view eather.
View 1 RepliesI would like to add a column in my datagridview that takes the value from the database and asigns it to the text of a linkbutton or make it a hyperlink. i know how to handle getting the value from the row but dont
know how to make a value a link, or set the text to a link button
I want to hide a grid view column if that column is empty. How do I do this? I dont have much exp. with grids.
View 23 RepliesI got this code which bind a datatable to a grid view. After the binding, i wanted to add additional column to the right of the grid, how can I do that? My codes below failed to do it.
[Code]....
The Header value of "ID1" is shown, but the cells only shows a '-' instead of 'New Column' sign.
I have a Gridview with a templated column which contains just a label.
I set the Label1.text during GridView1.RowDataBound based on doing a DataBinder.Eval(e.Row.DataItem,"myColumn") and a calculation off that.
When the user clicks the header I want it to sort based on what's in the Label but instead if seems to be sorting on the contents it was bound to, "myColumn", even though that's not what appears in the grid.
I have a grid with one itemtemplate field with autogenerated columns=true.I want to show the itemtemplate filed after autogenerated columns .
View 6 RepliesHow can i create a hyperlink to Grid view column, when i click this column it should open Word documentnt.Each Column row values does have seperate information.
View 3 RepliesI have autogenerated columns some columns come from db and some are virtual columns what i am adding to a dataset that consist of columns from db.i want to disable sorting for the virtual columns which i add to dataset
View 2 Replies