New Message on dotNET User Group Hyd

Regarding Datagrid Problem

Reply
  Reply to Sender   Recommend Message 1 in Discussion
From: Muralij

Hello Everbody

I am Stuck up with a Datagrid problem in ASp.Net

My Problems Description is as follows

My Stored Procedure returns a result set which will be binded to a datagrid
through a Data set
Now the problem is the first two columns are character data types and the
remaining columns contain numeric data which i want to seperate them by
commas.

i have a solution but i need a better one than this because the solution i
have has a nested loop to be done.

Dim BrDs As New DataSet
Dim BrAdp As New SqlDataAdapter(BrCommand)
BrAdp.Fill(BrDs)
Dim nfi As NumberFormatInfo = New CultureInfo("hi-IN", True).NumberFormat
nfi.NumberDecimalDigits = 0
Dim i, j As Integer
For j = 0 To BrDs.Tables(0).Rows.Count - 1
For i = 2 To BrDs.Tables(0).Columns.Count - 1
BrDs.Tables(0).Rows(j).Item(i) =
CType(BrDs.Tables(0).Rows(j).Item(i), Integer).ToString("N", nfi)
Next
Next

if any finds a solution better than this one please reply immediately.

thanks in advance
Murali

_________________________________________________________________
Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag
Only on www.shaadi.com. Register now!


View other groups in this category.

Click here!
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to