|
Does your ldst.tables(0) has a boolean column inside it?
You set the datagrid's DataSource = ldst.tables(0).
|
|
|
|
|
No..
I dont have any boolean column inside it..Moreover in the below code
the table name has to be given in this tablestyle.MappingName.But since i have got the dataset being filled by a stored procedure..i couldn't do that..So what i should i specify in this tablestyle.MappingName..At present i have just given the dataset name in it i.e ldst which is not working..
tableStyle.MappingName = "ldst"
Moreover if i use datagrid1.datasource= ldst.tables(0)..I get the values but without the checkbox column which is of no need..
Kindly reply...
Balaguru
|
|
|
|
|
Try to see whether you can add the bool column in the dataset.table after you got it from the SP.
Be careful if you're going to save the dataset back to DB though, but since you got the dataset from a stored procedure I guess it's safe.
|
|
|
|
|
Dear Darkelv..
I am just displaying a checkbox in that datagrid's first column..I am not going to affect that table by any means with that checkbox..Ideally the checkbox itself is not shown..Then how could i think of making some changes in that table by means of that checkbox..?
Reply in this regard...
Thanks & Regards,
Balaguru
|
|
|
|
|
Well what I mean was just be careful that if you going to save the dataset back to DB, the extra column will probably cause problem. As you are not going to save the dataset back to DB, I think it should be fine.
|
|
|
|
|
Ok then..Wats the solution to bring that checkbox into that datagrid..?
Regards,
Balaguru
|
|
|
|
|
Well, since I do not know your system environment and what do you intend to do with the grid.
1. Have the column be added in the DataTable, by adding directly to Columns after you have gotten the result (I am not sure if you are able to add, kinda rusty with dataset).
2. Have the column be added in the DataTable, by using a Function to call the SP, then do a "Select [new bool column], * from Function(params)". I think you should be able to do that.
3. Transfer the data from DataTable to a collection of struct/class that has the additional bool property, and bind to the collection. May not fit your system design.
4. Beg the db owner?
|
|
|
|
|
hello all
i have to replace some string
search text is - <a href="/
replace text is - <a href="http://www.mysite.com/
and i am using below
str = Replace(str, "<a href="/","<a href="http://www.mysite.com/")
but i am unable to use escape sequence .
please help some
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
AS you didn't tell us the error, I have to guess and assume it's because you have a " in your string, and need to use \" instead.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
please type my code in you application then you will get my problem.
actualy " comes im my string so it creating problem in string building
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
VB doesn't understand C-style escapes. Additionally, you escaped the string delimiters, not the quotes inside the string. Double quotes must be paired up to be escaped in VB, so your statement would look like:
str = Replace(str, "<a href="">
<div class="ForumSig"> <small>
<a href="http:
<br>
<font color="Blue">Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic<br /> 2006, 2007, 2008</font>
</br>
</div></a>
|
|
|
|
|
Try using double quoutes like so:
str = Replace(str,"<a href=""/", "<a href=""http://www.mysite.com/")
Notice href=""/ as the critical part in your problem. It would appear that you are not escaping the double qoute.
I hope this helps...
|
|
|
|
|
hi
please i want a way to get all file names i selected and pressed enter
to open with my application
i tried command$ and commandlineargs but this gave me just one file name for every instance
i want a way to get all of the files i selected together and in just on time
i tried startupnextinstance but this is a very slow way
i think i shoulde use windows api but i dont know how
please help.............
|
|
|
|
|
Didn't you ask this already, or in another forum ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hai friends
i have a datatable with a primary key
i m retriving the data from the main database and filling in this datatable
i have primary key for datatable, so i found out a particular record and i edited the data ..
now how to update the data ....
to the datatable ..... not main database
and one more question is ....
i have a primary key for datatable ...
is it mandatory that the main database table should have a primary key with the same column name ...
plz help me ...
oke bye
thanks in advance
vijay
devulapally_vijay@yahoo.co.in
|
|
|
|
|
you want to change the data in your data table, but not the DB ? Grab the data source, add some rows, then bind to it again.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
How to Zip And Unzip a file using vb6.0. To Achieve this what are the necessary DLL's needs to add.Any Samples..Thanks in Advance..
Regards
Kanna
|
|
|
|
|
There is no such direct way of zipping or unzipping files directly in Visual Basic 6. You have two options –
1) Study file format of zip files and create your own class for zipping and unzipping file.
2) Get some freely available DLL files (such as of InfoZip) and use them. For this purpose if you search on Google for ‘zip+vb6’, you will get enough links.
-Ajay.
-------------------------
www.componentone.com
-------------------------
|
|
|
|
|
hi
i am working on making Setup in vb.net. So there
i want add one more setup file in .net Setup because
i want when my Setup instal thn it first instal setup which
i add setup in setup application.
how it possible please help me
thanks
|
|
|
|
|
You want your setup file to run another MSI ? Is that what you mean ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
What is the other setup ? Howare you creating a setup project ? Why not create a new MSI built on the old one, just adding the new files ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello all,
I'm newbie to this forum and learning programming for myself. I need to create a code which used to control the receipt printer manually using a call function in VB.NET. So I can print out the price and item description to the receipt. I'm doing these for my sister which is running a souveniers shop Point-Of-Sales System. And this control function able to used by both Dot Matrix(TM-U220) and Thermal Line(TM-T88IV) Receipt Printer. Anyone can give me some solution about it?
Thanks for reading.
|
|
|
|
|
Printers are handled through a layer of abstraction, you should be able to use any printer tutorial and ave the driver handle the specifics of the printer for you
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sorry Christian Graus,what do you mean by printer tutorial? I'm trying to develop this code to solve my sisters Point of Sales problem. I need something like a sub function that can call a printer to printout the receipt. Is that any .NET build in component in VB.NET can help me solve this? Anyone can give me some help or guidelines?
Thank you~!
|
|
|
|