First of all, Add this to Top Line in .cs File,
using System.Text.Reg ularExpressions ;
Now use The Following Function:
public static bool IsNumeric(strin g TextData)
{
string AllowChar = "[^0-9]";
if(Regex.IsMatc h(TextData.Trim (),AllowChar))
return false;
else
return true;
}
User Profile
Collapse
-
How to set Columns Width of DataGrid in C#...?
Hi All!
I am workin in C#.NET Project. I have to show data in a DataGrid but all Columns are of different width e.g Name, Address, Email. How can I programmaticall y set the width of different columns.
Thanks in Advance.
An early reply is requested... -
Hello!
If u want to set different Column width for DataGrid then just Right Click on datagrid, Select Property Builder ... and then select Format.
U will see all columns with column heading and index. Now click on any column and set the width of column.
i think it will work fine.Leave a comment:
-
Thanx Mary.
But one of my colligue told me that we can open MS Access Reports in ASP.NET. Still I have not received the answer i needed....Leave a comment:
-
How to print a DataGrid in ASP.NET using C#
Hi!
Can anyone tell me how to print and preview a DataGrid in ASP.NET using C#. Obviously All columns should be visible in printing. Conditional formating and Columns Selection techniques in printing are also required.
Thanks in advance... -
How to access MS Access 2000 Report in ASP.NET page.
Hi all!
I have developed an application software in ASP.NET. Backend for this application is MS Access. I have designed few reports in MS Access but I don't know how to call or access these reports in aspx page. Can anyone tell me how to use MS Access Reports in ASP.NET using C#.
Thanks! -
How to access MS Access 2000 Report in ASP.NET page.
Hi all!
I have developed an application software in ASP.NET. Backend for this application is MS Access. I have designed few reports in MS Access but I don't know how to call or access these reports in aspx page. Can anyone tell me how to use MS Access Reports in ASP.NET using C#.
Thanks!
No activity results to display
Show More
Leave a comment: