| datagrid header (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| Is it possible to have an overall header that spans across all columns? An example would be a class schedule for student Ben. |Ben |English |Thursday | |Ben |Geology |Monday | |Ben |Physics |Tuesday | I want it to look like this: | Ben | |English |Thursday | |Geology |Monday | |Physics |Tuesday | In other words, hide the student column and make it a non repeatable value in the datagrid header. Not... |
|
| Datagrid header text (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, I'm wondering how can i change the datagrid header text at runtime so that it keeps the sorting enabled? I can do; e.Item.Cells[0].Text "foo"; But then foo is the text of the table cell and not the underlying hyperlink and as such, foo is no longer sortable. I've tried things like... ((HyperLink)(e.Item.Cells[0].Controls[0]).Text "foo"; But I get a null exception. In fact for some unknown reas... |
|
| Datagrid Master-Detail Responsibilities (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| I have 2 Datagrids ... One for Roles dgLDRoles and One for Procedures dgLDProc They are tied to tables in MS Access. I have created and bound them using relationships in VB.Net I want the user to be able to add edit and delete roles and Procedures related to the roles. The error I get most often is can not delete record ... concurrency error. My problem is I do not know when I have have to call Up... |
|
| Datagrid not always getting the click event. (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| I have the following code that works sometimes. I have no Idea why it works occasionally and not others. It is meant to select (Highlight) the entire row when it is clicked. A breakpoint does not stop most of the time the grid is clicked. I am new to VB dotnet but am experienced in C and VB, even though I dont normally write code anymore. Any ideas? Private Sub gridCustList Click(ByVal sender As O... |
|
| DataGrid Paging (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi I really can't figure out what's wrong with my code asp:datagrid id "DataGrid1" runat "server" AllowPaging "True" AllowSorting "True" AutoGenerateColumns "True" OnPageIndexChanged "ChangeIndex" PagerStyle Mode "NumericPages" /PagerStyle .... private void Page Load(object sender, System.EventArgs e) { if (!Page.IsPostBack) { this.sqlConnection1 new SqlConnection (DBConstant.connectionDB); this.s... |
|
| Datagrid Paging Event Doesn't Fire (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hello, I have been using a datagrid to page through the results of a query. Coding standards prevent me from setting the properties of the datagrid and binding data to the datagrid in the Page Load method. I instead create and bind data to the datagrid in other methods (such as the getData method) which are called after the Page Load method is executed. My problem is that the PageIndexChanged even... |
|
| Datagrid Performance - Binding and Rendering (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| CONTEXT: I have build a class called clsGridBuilder that uses the TemplateColumn class to dynamically build a datagrid, using the ITemplate.InstantiateIn interface to dynamically add controls to each tablecell and then Dynamically binds each cell to an element in a DataTable. PROBLEM1: It only takes 1 2 seconds to load the datatable and create the instantiate the grid. However, it take 7 to 20 sec... |
|
| DataGrid problem (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi all, I want to highlight the date overdue row in datagid so that it will be easy for user caution, how to change the specific row background color in datagrid? Thx a lot |
|
| Datagrid problem (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Greetings, I am having trouble when adding a new row to my datagrid. If I enter values in all columns of the "new" row in the datagrid, and use a hotkey to move to a "Save" button, the datasource is unaware of the new row. If I use the mouse, and click the "Save" button, the datasource is aware of the new row. When does the datagrid tell the datasource that a new row has been added?? How can I for... |
|
| DataGrid problem that's very difficult. A Challenge for someone (VIP replies) |
| microsoft.public.dotnet.framework |
| This is a difficult problem and I have been trying everything for a week or more. It is a datagrid on a form and a button for adding a row and a button for deleting a row that gets enabled when a row is selected. The datagrid is bound to an array list rather than directly to a database. If the add button is clicked, a row gets added ok and the program moves to a cell on the new row ready for editi... |
|
| DataGrid properties (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| When setting certain datagrid properties with the IDE (as in the property window), they don't seem to take effect. For instance, Font Name. So I have to set these via code behind at the cell level. Is this expected? Shouldn't anything on the properties window render accordingly? Thanks |
|
| Datagrid questions (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| i got couple of dotNet questions pertaining to dataGrid, if you could help me out. 1) how do i store more than one key value in the DATAKEY element. So far from what i have seen it doesnot seem possible, this is to store composite primary keys? i have found out that i need to join the composite values with a delimiter in the sql statement and then bind it. is it not possible to do it in any other ... |
|
| Datagrid Relation View (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I wish to make a custom view of relations in a datagrid what i want to do is when the plus sign is clicked instead of showing the link label i want to show a grid with the subtable in that area between the selected grid and the next grid. however i cannot seem to find a method of obtaing the position coordinate for that area.? and ideas on how to go about finding the position? WStoreyII thanks aga... |
|
| DataGrid Row Height and Vertical Scrollbar (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I'm using the method described in George Shepard's Windows Forms FAQ to programatically alter row heights in a DataGrid: http://www.syncfusion.com/FAQ/WinForms/FAQ c44c.asp#q1076q The row heights are altered correctly but the vertical scrollbar on the DataGrid seems to be unaware of the change in row heights. If you run the sample code shown below you will find you are unable to scroll to the end ... |
|
| Datagrid selected items with checkbox (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| I read some articles about the way to find the rows having his checkbox checked. Here is the code Private Sub btnModifier Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnModifier.Click Dim dgItem As DataGridItem Dim chkSelected As CheckBox For Each dgItem In Me.DataGrid1.Items chkSelected dgItem.FindControl("chkSelect") If chkSelected.Checked Then ' my code End If Next... |
|
| DataGrid ShowScrollBars override issue - help! (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| Hello, I have created a class that inherits from the Datagrid in order to disable the users ability to resize columns, and to always show the vertical scroll bar. However, if I only have, say one or two items showing in the datagrid, the scrollbars do not take up the entire height of the datagrid? When I have enough items to enable the scroll bars, they do take up the entire height of the datagrid... |
|
| datagrid sort custom control question (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.buildingcontrols |
| I am building a custom scrollable grid control. I have created buttons in the header that postback and provide to me the column that was clicked on. In most datagrid situations it is up to the programmer to now resort the datasource (dataview) and re order it before rebinding to the grid control. I am somewhat confused. After a postback my aspx page does not rebind the datagrid with the datasource... |
|
| DataGrid Sorting returns wrong values from dataTable (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello, I have a datagrid in my C# application. The Grid has 4 columns, one is a Boolcoluumn, other 3 are string columns. Out of which bool column is editable & the last column is editable too. Using DataGridColumnStyle i've allowed Sorting to true for the whole Datatable. At a time the user is allowed to Enable only one bool column for the whole Grid. I've handled this using CurrentCellChanged eve... |
|
| DataGrid to Excel (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| Hi, I wrote a small function, thaht converts a DataGrid to Excel from a Web Application (C#). Running the function with 100 200 rows it just works fine. Starting a "special" Report produces a DataDrid with about 13650 Rows. Now the conversion to Excel does not work. Are there any known restrictions? The code looks like this: private void btnExcel Click(object sender, System.EventArgs e) { Response... |
|
| Datagrid to Excel problem (ASP dot net) (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I use the following code: Private Sub RbtnExport SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RbtnExport.SelectedIndexChanged Dim sFile As String Session("User") & " Customer List " & Today() sFile sFile.Replace("/", "") RbtnExport.Visible False Select Case RbtnExport.SelectedItem.Value Case "Excel" Response.ContentType "application/x msexcel" Case "Word... |
|
| datagrid trouble (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi I can't figure why I get this error when I click on next button Value CurrentPageIndex invalid, She should be 0 and PageCount the code : private void Page Load(object sender, System.EventArgs e) { if (!Page.IsPostBack) { HttpCookie cookie Request.Cookies["hopitalID"]; strCookieValue cookie.Value.ToString(); BindGrid(); } } private DataSet GetData() { String SQLStatement "SELECT DISTINCT FACTURE... |
|
| datagrid verification issue (VIP replies) |
| microsoft.public.dotnet.general |
| I am trying to verify a datagrid in which there must be an entry in both columns of any new row, and those values must be greater than the corresponding values in the previous row. It is pretty simple to verify the cell the user starts in by invoking a verifying event for the underlying textbox in that cell, but what I would like to do is to change the focus to the other column in the new row if i... |
|
| DataGrid Web form BGcolor (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Is there a way to change the BGcolor of row(s) on the web datagrid based on values within a cell Example: rows 1, 5, 9 all need to have their background color different than all other rows i am using vb.net code behind, web form datagrid, calling a webs ervice |
|
| Datagrid with checkbox and SQL (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi ! I'm trying to use a datagrid with an checkbox column, I not shoure to get it work on several points I have got the rest of the data mapped to the grid but the checkbox doesnt work. 1. The column type in the sql is Integer (values 0 or 1), is this ok or should I change it to something else? 2. my code to load the grid Sub LoadDataToGrid() formatdatagrid() DataSet11.Clear() DataGrid1.DataSource... |
|
| DataGrid with DropDownLists not responding to OnSelectedIndexChanged (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| Hello group, I have a TemplateColumn containing a DropDownList in my DataGrid. I added an OnSelectedIndexChanged property in that DropDownList, but I can see in debug mode that changing the selection will not call my function defined in OnSelectedIndexChanged (the page reloads, I didn't forget AutoPostBack true). Is this normal ? Is there a way around it ? Karine |
|