I’m using VB.Net 2008 application program.
I’m using DataGridView. I have a Print Preview option where i need to print the DataGridView.
I’m using this code for Print Preview.
Dim MyDataGridViewPrinter As DataGridViewPrinter
Private Function SetupThePrinting() As Boolean
Dim...
johnH, thank you so much for your help.
As you said i think i'm executing that code multiple times with different row indexes.
So i try this code, and it's working...
For Each r As DataGridViewRow In DataGridView1.Rows
If r.Cells(3).Value.ToString =...
Thanks JohnH for the reply.
i tried the above code for setting Readonly property of the cell. but this makes every cell in that column editable.
If you know how to do this, please help me.
Thanks in advance.
I’m using VB.Net.
I’m using DataGridView with ColumnType = DataGridViewTextBoxColumn.
I have 3 columns. Column1, Column2, Column3.
For example:
Column1 Column2 Column3
1 AA AAA
2 BB EDIT
3...
I’m using VB.Net 2008 application program.
I’m using DataGridView. I have a Print option where i need to print the DataGridView.
I’m using this code for Printing and for Print Preview.
Dim MyDataGridViewPrinter As DataGridViewPrinter
Private Function SetupThePrinting() As Boolean...
Thanks for your help. it's working.
As you mentioned while adding data to column, somehow i converted that to string. once i removed that, it's working fine and start sorting.
Thanks a lot for your help...
I’m using VB.Net 2008 application program.
I’m using DataGridView, where column types DataGridViewTextBoxColumn. I have 3 fields. 1 field values are numeric, 1 field values are string and 1 field values are decimal.
When I try to sort the string value column, it sorts correctly. But when i try...
i have an VB.Net 2003 Application Program that use MS Access, that works fine in Windows XP and Windows 7.
But when i create that same program to VB.Net 2005 Application Program that use MS Access.
it works fine in Windows XP.
but in Windows 7 it shows this error
This is how i used to...
ebtihal, i will check your code and try to help you....
mean while add this new issue as new thread. so more people will read this and try to help you. this thread is resolved. so no new people will check this thread. so try to create a new thread for this issue...
Hi ebtihal...
at first i was trying to code like that and i also had the same issue. duplicated column (one as link, the other one is normal). that's why i using GridView1_RowDataBound to create HyperLink.
you can try this code.
ProtectedSub Page_Load(ByVal sender AsObject, ByVal e As...
Thanks JohnH for your reply...
so we cannot get version number without downloading the file from FTP.
qht i'm trying to do is, i need to check the version number of exe in FTP and check version number of exe in local machine. if it's different, then need to download exe from FTP.
Thanks in...
to find version of an exe, i use this code
Dim FileProperties As FileVersionInfo = FileVersionInfo.GetVersionInfo(Application.ExecutablePath)
Textbox1.Text = FileProperties.FileVersion
How come we find a version of an exe that's uploaded in FTP? i need the version of an exe that's already...
Its working by using this code....
If Not Page.IsPostBack Then
Else
Calendar1.TodaysDate = DateTime.Now.AddMonths(1)
Calendar1.SelectedDate = DateTime.Now.AddMonths(1)
Calendar1.VisibleDate = Calendar1.SelectedDate
End If
i’m using ASP.NET.
i created a calendar, using the below code.
<asp:Calendar id=Calendar1 runat="server"
onselectionchanged="Date_Selected"
DayNameFormat="Short"
SelectionMode="DayWeek"
Font-Names="Arial" Font-Size="12px"...
adding code here. so later if someone have this problem, they can check this.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim h As Integer = 0
Dim gBool As Boolean = False
'Now add data for dynamic columns...
when i try this code to display in DataTable Row, it's displaying this text inside textbox <a href=Update.aspx?id=81>" & "My Link Text" & "</a>
Then i tried this code using TemplateFiled,
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports system.IO
Public Class TemplateHandler...
created a small sample application of what i'm doing and i added that code here...
at run time only i will come to know how many columns i need to display. it depends up on the values from Database. so i'm creating columns dynamically and adding to gridview. till that it works fine. but i want...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.