C# - Truncate Text In RadGrid Column?


using Telerik RadGrid* in a LINQ context, with ASP.NET/C#, how to truncate text to a maximum length when displaying in columns? By maximum, I mean if original string's length is shorter than the specified maximum length, no errors will raise.I have seen many examples of this on the net, but it seems that the Container.DataItem used to achieve this is different when using LINQ. Sometimes we see DataItem as a method, sometimes not. Examples are usually using a DataSet.Here's an example found (source) : <asp:TemplateField HeaderText="Description"> <ItemTemplate> <%# ValidateString(Container.DataItem("Description")) %> [code]...

View Answers
Very similar questions


Finding Values In A Telerik Radgrid? stackoverflow.com

I've tried to find the answer, but am not having any luck and am wasting to much time trying to figure it out. Using RadGrid from Telerik, latest version of their Ajax Controls, I've added a Select to each row, and can't figure out how to get the value of the selected row. Prefer to get the value of the ID column (from ID field in my database) or other specific columns. C# or VB example will work, VB preferred.

Databases :: Excel Exporting Of RadGrid In MS Office 2003 With 2007? forums.asp.net

I have a Telerik Radgrid i export the data in RadGrid with gridexporting property of radgrid in Excel 2003 i.e .xls but the problem is that my some client's computers have excel 2003 and some have 2007 when this exported radgrid excel data going to be opened in 2007 this shows some message that due to .xls file going to opened in 2007 but after clicking ok button on message its allowed me to open the file, i just wanted to stop this message.

The Function Setting Up The Datasource Of That Second RadGrid Should Take "Value" As A Parameter? stackoverflow.com

Right now I have a RadToolTip inside of a RadGrid. The RadGrid displays a field from the datasource called "Value". The RadToolTip displays the same thing. I want to add another RadGrid inside of the RadToolTip. The function setting up the datasource of that second RadGrid should take "Value" as a parameter? How do I do that? Here's what I have so far. [code]....

Asp.net - Redirect To Two Different Pages In Radgrid Using Two Command Buttons Inside Radgrid? stackoverflow.com

I have a radgrid1 and inside radgrid Item template i have two asp.net imagebutton namely imagebutton1 and imagebutton2 .... i want when i click on Selected radgrid Item whose id is id then after clicking on Image Button1 i redirect to ~/book.aspx?id=1 and if i click on imagebutton2 then i redirect to ~/details.aspx?id=1 Note : the id of the item will be changed dynamically according to the selected radgrid row . I have already done it using simple Gridview but m unable to perform this action using radgrid.

C# - RadGrid Column Editable On Insert But Set To Readonly On Update? stackoverflow.com

I have a RadGrid which has a column like: <telerik:GridTemplateColumn HeaderText="Car" > <ItemTemplate> <asp:Label ID="MakeLabel" runat="Server" Text='<%# Eval("Make") %> /> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="MakeTextBox" runat="Server" Text='<%# Bind("Make") %> /> </EditItemTemplate> </telerik:GridTemplateColumn > and I'm wanting to set it up so that this column will allow input when inserting new values but won't when updating values.

How To Refresh Telerik:radgrid Contorl Using Javascript stackoverflow.com

How to refresh Telerik:radgrid contorl using Javascript ?

DTS Export To File Truncates Column To 255 Chars forums.databasejournal.com

I am having DTS problem exporting from a table to a text file (my 600 character table column is truncated to 255 characters in the output text file). I don't why this is happining nor how to get the DTS not truncate to 255 characters. Is this a bug? A limitation? How do I get around this problem? .......I am running SQL Server 7 SP1 and database is in 6.5 compatability mode.

Actionscript 3 :: Spark Datagrid - Text Goes Over Other Columns? stackoverflow.com

I have a spark Datagrid with lot of columns. The problem is that if i have a long text in a cell, then the text goes over other columns. I want the text to stay in it cell, if it longer than the columns width, then the text to be truncated somehow.

C# - Set Cursor To Pointer In A Grid? stackoverflow.com

I have a Rad Grid and I simply want the cursor to be a pointer on hover of every row. I've tried Css classes and it hasn't worked. I know there is a simple solution, i just don't know how to do it. Below is what i've tried <style type="text/css"> .UseHand { cursor: pointer; } <telerik:RadGrid ID="RadGrid1" Skin="WB" runat="server" AutoGenerateColumns="false" DataSourceID="DSID"> <GroupingSettings CaseSensitive="false" /> <SelectedItemStyle CssClass="UseHand" /> <MasterTableView>BLAH BLAH</MasterTableView> <ClientSettings EnableRowHoverStyle="true"> <Selecting AllowRowSelect="True" /> <ClientEvents /> </ClientSettings> </telerik:RadGrid>

C# - Exporting A Custom Excel File With RadGrid? stackoverflow.com

I can export my radgrid to an excel file but I want to add some more info into the sheet.If it is possible, I would appreciate for a tutorial/sample code for doing a custom excel file generation. <tel:radgrid runat="server" id="mygrid" skinid="RadGrid_Search_Standard"> <ExportSettings HideStructureColumns="true" /> </tel:radgrid> Grid is databound with some datatable and I need to add some data to add some strings above mygrid.MasterTableView.ExportToWord()

Radgrid Edit / Update Not Working? stackoverflow.com

I'm having a wired problem with Radgrid.. Im using a Radgrid to display some results where the user can edit/update/delete them. I'm using a single SQL Server 2000 table to fetch the results... Not sure why the events are not firing in radgrid. But I am able to do it successfully using the Gridview control... Im using .NET framework 4 Radgrid code <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" DataSourceID="SSDS" GridLines="None" Width="844px" DataMember="DefaultView">[code]....

Problem In Data Flow While Uploading www.sqlteam.com

[Source - Samp_txt [1]] Error: Data conversion failed. The data conversion for column "Column 2" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.". The column width for column2 is 60 and i have cross checked several times that i have created the column width as 60 in SQL Server table for the corresponding field. Sarvan

SQL Server 2005 JDBC Driver 1.1 Truncate Output Parameter From A Stored Procedure To 4000 Char. social.msdn.microsoft.com

I have a procedure that uses varchar(max) as output parameter, when I tried to retrieve the result of calling the procedure, the result is truncated to 4000 character.� Is this a driver bug? Any workaround? � Here is the pseudo code: create Procedure foo(@output varchar(max)) { ��� set @foo = 'string that has more than 4000 characters...'; ��� return; } � Java code: ��� CallableStatement cs = connection.prepareCall("{call foo ?}"); �� cs.registerOutputParameter(1, Types.longvarchar);�� // also tried Types.CLOB. �� cs.execute(); ��String result = cs.getString(1);� // The result is truncated to 4000 char. �� -- Also tried � CLOB clob = cs.getClob(1); � long len = clob.length();�� // The result is 4000. � Thanks, � Eric Wang � � �

Limitation The Length Of Double Variable? www.dreamincode.net

I need to truncate to sertain amount of decimals for example : dim x as double;x= 6.98455 textbox1.text = x that mean textbox1.text= 6.98455 I need textbox1.text= 6.99

Truncation Of String Data With Data Reader Source Connecting To ODBC DSN social.msdn.microsoft.com

A data reader�is using�a connection manager to connect to an ODBC System DSN .��A query in the SqlCommand property is�provided.� �Data is being truncated in the only string column .� The data type in data reader output-->external columns shows as Unicode string [DT_WSTR] Length 7.� The truncated output in a text file is the first 3 characters from left to right�.� Changing the column order has no effect. � A linked server was created in SQL Server Management Studio to test the�ODBC�System DSN using the following: EXEC sp_addlinkedserver �� @server = 'server_name', �� @srvproduct = '', �� @provider = 'MSDASQL', �� @datasrc = 'odbc_dsn_name' Data returned using "OPENQUERY" does not truncate the string column indicating that�the ODBC Driver returns data as expected with sql 2005, but not�with the Data Reader.� Any assistance would be appreciated.� Thanks,

Pass Record Id Into Hyperlink In Radgrid? stackoverflow.com

I've a radgrid and rendering a hyperlink column. I want to pass the id of the record into the url for the hyperlink. How can I do this? I have this <Columns> <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Edit" UniqueName="Edit"> <ItemTemplate> <asp:HyperLink ID="HyperLink1" runat="server" Target="_blank" NavigateUrl="~/Edit.aspx?Id=need_to_bind_id_here">Edit Details</asp:HyperLink> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> There is an ID column which is generated too.

Show Zeros After Decimal www.mrexcel.com

I have a list of numbers: 21.20151242 28.012224 etc.... I want to round/truncate them as if it were currency and add "/month" to them so the resulting column would be: 21.20/month 28.01/month everytime I truncate to two digits and add the text it cuts off the final zero: 21.2/month how do I do this?

Pasting Carriage Returns social.msdn.microsoft.com

I'm using Microsoft SQL 2005. I am attempting to store text in a column defined as varchar(2048). The text contains line feed and carriage return characters. After examining the database column the text is truncated after the first set of line feed and carriage return characters. Is there a way to force SQL Server to store these characters? � Much Thanks, Robert �

VS 2010 Finding OLD Basic Function In .net? www.vbforums.com

in the old days i could so something like GWBasic 10 A$="ReallyLongStringInSmallSpace": B$="tiny" 20 PRINT USING" ASDFASDFASDF ASDFASDF"; A$; B$ Output: "Re ASDFASDFASDF tiny ASDFASDF" it would automatically truncate large strings to fit in a small assigned space, and it would use empty spaces for strings too short. it made it VERY easy to print fixed front text tables in aligned columns by automatically truncating long lines and expanding using spaces (chr 32) where needed.i've already looked at .Format but it seems just for dates, times, currencies, and various byte/hex formats.

Find Html Anchor Control In Telerik:radgrid ? stackoverflow.com

how to find html anchor control in telerik:radgrid ?

Telerik RadGrid - How To Add A New Row From Code Behind stackoverflow.com

What's the simplest way to add a new row to a Telerik RadGrid in ASP.NET from code behind?

Custom Server Controls :: FilterExpression Not Working With Other Filters forums.asp.net

I have a radgrid with multiple filters including DateTimePicker for From DateTime To DateTime. [Code]....

Forms Data Controls :: Adding A Blankrow In A Radgrid? forums.asp.net

i want to add a blank row in a radgrid.. how do i do that?

Decimal Values Get Truncated When Using SqlDataReader In C# .net www.dbforums.com

The values that are being fetched from the database are not being read as is , when there are decimal values with 10 or more digits after the point, the values are truncated (approximated) to 8 digits The approximation is not consistent in all the cases Some times depending on the numbers for example 0.434000001 is truncated to 0.434. This is happening when i read the values from the sql database using the SqlDataReader.GetValue method into an ArrayList in C# .NET

Content Of Textbox Control More Than 32K www.vbforums.com

hi,can somebody help me ?currently I use textbox control to display content of text file with :text1.text = content_of_text_filethe problem is : if size of text file > 32K, textbox will display the content but it will be truncated, so only 32K character of text file's content will be displayedquestion :is it possible to usetext1.text = content_of_text_filewhere length of content_of_text_file > 32K(because if I paste some text where length of that text > 32K to a textbox, that textbox can received and displayed that text correctly (with out truncated at 32K) )maybe must use window API ?thanks in advancedrudi

Telerik Text Selection? www.vbforums.com

I have a telerik radgrid, like shown underneath | Username | Password | ------------------------- | A_user | ***** | [code].....

C# - Extra Column Appearing When Paging In Telerik RadGrid? stackoverflow.com

I'm getting a blank column when switching to another page using the default pager in the telerik radgrid. As data for each row, it shows the type of data i am using for the rows (SearchRecord) Anyone have any clues as to why this may be happening? It doesn't show up on initial population of the grid, but only when I do paging. My columns are built dynamically but i confirmed that when my columns are built, they are the correct number.

Forms Data Controls :: How To Select Row In Telerik Grid And Get Value Of Column 1 forums.asp.net

I want to select the row of telerik radgrid and get the value of column 1For thi can't use select or deselect columns, Here i want to select row by clicking only.here I also require code to get the value of column 1 of selected row

Programmatically Removing A Header Context Menu Filter From RadGrid? stackoverflow.com

I've got a repeater I've bound to column names that are filtered, as they're applied (using sessions currently, I might change this to loop through the columns looking for filters now that I really know how the grid works). I've got a button next to each filtered column name that is to remove the filter from the RadGrid. <asp:Repeater ID="repCorpFilters" runat="server" OnItemCommand="repFilters_ItemCommand"> <HeaderTemplate> Current Filters: </HeaderTemplate> <ItemTemplate> [Code]....

Truncation Of Leading Zeros forums.databasejournal.com

I have a problem while importing data from Excel to SQL Server.The leading zeros in data get truncated.Even if I try and change the excel data column as 'Text' and copy paste the data back into the Text column, the problem persists.Does any one have any thoughts about this problem?

Telerik RadGrid Doesn't Display On First Page_Load But Does On Postback stackoverflow.com

I have a page with a drop-down. Based on the selection in the drop-down, data gets loaded and populates a RadGrid. I am using a custom user control for the EditTemplate, so I can't use radGrid.DataBind(). Instead, I have to use radGrid.MasterTableView.Rebind() in association with a NeedDataSource event handler. My problem is that when I load the page initially, I populate the drop-down and automatically select a value (first item in the list) which triggers the databinding on the RadGrid. I can step through the code in debug mode and see that the grid is being populated with data, but when the page displays, it doesn't get rendered. When I then manually choose an item from the drop-down, which triggers the same grid databinding code, it displays properly the second time. How do I get it to display the grid the first time the page loads?

Populating Large Data In A Single Column Of Vb6 ListView Control www.vbforums.com

I have created a project (standard exe) using VB6, where a Listview has been added to a form [Microsoft Windows Common Controls 6.0 (SP6)]. This listView is configured to have 3 Columns which are populated on "Form_Load" event. Source Code is as below --Private Sub Form_Load() With ListView1 Set Item = .ListItems.Add(, , "Item 1") Item.SubItems(1) = "ABC QWORTHRT SDHT (400S 844S 466S_GG_CC 444HST_F1_YC 423HFS_T3 462HDF_ESF_RR 445SDF_ASD 345RTY_T3_ERT 345SGF_T3_2TY 342STT_RTY_2UY 543ATY 555YTR_YY 654FDS_4433 432HFD_2344_T6 432FDS_S3_REW 543RFV_EDC 333S_2GF 321EEE_E3_3EE 322TGB_BGT_4TG 456Y_DFGH 234T 234T_F5 654HGT_5433_GF 345FRE_5643 554GFV_3423_D5 453FDW_3455 543FDS_3344 432EW2_3344_R5)" End WithEnd SubThe problem is that, on executing the application the listview column is not able to accomodate the complete text, i.e. a part of the data is truncated in the 2nd column. The max characters from the above, that it is able to accomodete is 301 only.Could anyone please, help me as to how to make the List view accomodate large data in a single column, without truncating the text.I would be highly obliged with your help.

Forms Data Controls :: Increase Column Width Of Address In Gridview forums.asp.net

I have this lastname column and address column. The address obviously is longer so it makes the gridview to increase its height which I don't want to happen. What I want is to increase the column width of the address in gridview that will suit the long text inside it. How could I do it in C#? Currently this are my codes: C# [Code].... CSS [Code]....

Reading Text Into Varchar bytes.com

Hello, I have a column (text datatype) and has to send an email as a text (not attachment) using cdonts. I am reading the data from text column storing in a varchar field and saying cdonts.body = [data]. This way I can send email to as a text format. Now, my problem is when length of data is greater than the 8000 chars it truncates the rest of the data.......and email I send is a truncated email.......loosing imporatnt data. How should I resolve this situation.......I am trying some different ideas but not worked yet. Finally, I am writting the entire content in a file and sending it as attachment but the reaquirement is to send it as a body text. Any ideas? Let me know if you need more details! Thanks, -Hayat www.mysticssoft.com

DTS Help With Uploading An Excel Spreadsheet www.dbforums.com

Can somebody please tell me what I am doing wrong or need to do to resolve my issue. I having problems with one of the columns in an excel spreadsheet that I am trying to upload into the system. One of the columns contain values of both text and numbers such as 'ABC123', 'ABC124', '123456' etc. When I try uploading the sheet into SQL Server 2000 using DTS, the system removes all characters from the one column that I am having problems with. So entry 'ABC123' for example would be truncated to '123'. I tried formatting the column that I am having trouble with in excel to 'General' format as well as tried to transform the column to type varchar in SQL Server while using the DTS wizard but still had no luck. The problem is that SQL server thinks that the column is a float type column from the source and therefore truncates any characters.

Passing The Value Of A Readonly Radgrid Column To A Stored Procedure stackoverflow.com

I have a radgrid bound to a SqlDataSource that includes a hidden, readonly column that stores a pk. I want to pass the value bound to that column to a stored procedure for Updates but the default behavior when the column is readonly is not to pass the parameter to the sqlDataSource. My question is whether there is a way to pass that value without having to go into the code behind. Here is a snippet of my asp markup. <telerik:RadGrid ID="rgEmployees" runat="server" AutoGenerateColumns="False" DataSourceID="sdsEmployees" GridLines="None" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true"> [Code].... If I set readonly="false" on the It works fine but then the user can edit the primary key value which is not desired. I know work arounds in code behind but is there any way to do it straight in the markup?

AJAX :: PageMethods Calls Inconsistent? forums.asp.net

Ran into a bit of problem when using PageMethods when calling a webmethod in the code-behind. My markup page has a radgrid which gets populated via the objectdatasource.Pagemethods works and returns data as expected when the objectdatasource binds the radgrid with some data but not when the objectdatasource returns nothing, i.e. radgrid is empty. PageMethods call has got nothing to do with the objectdatasource, I'm simply using its output to build a list of checkboxes dynamically on the client side using Javascript. And this is how my code snippets looks like:Markup page: <script type="text/javascript"> function CallGetARInvoices(src,dest) { [code]...

Forms Data Controls :: Value Inserted Into SQL By FormView Gets Truncated forums.asp.net

I have a SQL 2005 database table with a column that has a datatype of nvarchar(255). It holds URLs.I created a FormView to edit records in the SQL table. The value for this column gets put in a TextBox in the FormView.When trying to edit the record, any text placed in the textbox gets truncated at 50 charactersI checked the TableAdapter in my dataset, and in the properties for that column, it has "255" for MaxLength.

Android :: Way To Check Ia TextView's Text Is Truncated stackoverflow.com

Can you please tell me if there is a way to check a TextView's text is truncated in my code?

IPad Mini :: Concerning Mail - Changing Display Of Inbox Contents? www.ipadforums.net

How the display of the inbox contents is in a column truncating the information in a column occupying 2/5 of the screen. Is there a way to have display the info in full screen and not truncate the preview info?

Get Column Number Of Clicked Button www.ozgrid.com

Sub Mainscoresheet() Dim k As Integer, i As Integer, cs As Integer Set b = ActiveSheet.Buttons(Application.Caller) With b.TopLeftCell cs = .Column End With I have a button assigned to this macro about 20 times all over my worksheet I will place the button in dirrerent locations. What I need to do is get the column that the top-left corner of the button and assign that to "cs". Example if the top left corner of the button is in column "F" then cs would be 6.

Encoding Special Characters For Outlook HTML Email? stackoverflow.com

I have an asp.net / C# page which takes a comment, and then emails that comment. Sometimes when the user enters "&" in the comment, the comment is being truncated. So for example if the comment is "test & test" the email only sends out "test ". I have tried HttpUtility.HtmlEncode - but it looks like the issue is on the outlook side and not on the C# side.

Forms Data Controls :: Showing Image In One Column In Radgrid Using Values From Database? forums.asp.net

I am having one column in each row of my radgrid in which i want to show an image. I am getting values from database saying 1,2 for that particular column and for each of these values i want to show different images for different values. For Example if i am getting 1 from database i want to show "roseImage" and for 2 i want to show "lotusimage",

Please Help - VB Validate Username && Pwds www.vbforums.com

HiCan anyone help - I have created a login interface. The login screen opens an SQL table, fine, but I want to validate the users input.My code so far -Private Sub txtUserName_Validate(Cancel As Boolean)Dim oCn As ADODB.ConnectionDim rsuser As ADODB.RecordsetDim sSQL As StringDim CS As StringDim userid As StringDim password As StringSet oCn = New ADODB.Connectionuserid = txtUserName.Textpassword = txtPassword.Text CS = "Provider=SQLOLEDB.1;" CS = CS & "Data Source=SWserv;" CS = CS & "database=lists;" CS = CS & "user id=" & userid & "" CS = CS & "password=" & password & "" CS = CS & "Use Procedure for Prepare=1;" CS = CS & "Auto Translate=True;" CS = CS & "Packet Size=4096;"'Open the Connection oCn.ConnectionString = CS oCn.CursorLocation = adUseServer oCn.Open CS Set rsuser = New ADODB.Recordset rsuser.Open "listsofemps", CS, , , adCmdTable 'SQL returns information about the userid passed to it sSQL = "select * from dbo.listsofemps where UserName = '" & txtUserName.Text & "'" & txtPassword.Text & " '" cmdOK.Enabled = True End Sub Please Help

Apply Smarty Modifier On Block Output? stackoverflow.com

I'm trying to apply a modifier (truncate, in my case) to the output of a block (a tr block, that is, a translation block). I don't have tr as a modifier because it's not convenient for HTML markup.I don't really know what kind of syntax I should use, nor if it's allowed (given, my usage of blocks might be a bit funky).Something like that, if it makes any sense:{{tr}Really long text I want to be translated then truncated{/tr}|truncate}

C# - Any Pointers To How To Use Telerik RADGrid In C Sharp stackoverflow.com

give me any pointers for free tutorial on RADGRID or give me a simple example on how to create a RADGRID and bind it to data source.

How To Change The Data In Telerik's RadGrid Based On Calendar's Selected Dates stackoverflow.com

I was creating another usercontrol with Telerik's RadGrid and Calendar. [code]..... The problems are, (1) when I click the submit button. the data in the RadGrid is not changed. (2) how can we check if there is nothing selected in the Calendar controls, because there is a date (01/01/0001) set even if we do not select anything from that calendar, thus Calendar1.SelectedDate != null is not enough.

DataSource Controls :: Storing An Attachment Uploaded By User In RadGrid Into Sql Server 2005 Database forums.asp.net

I am a new-bie in Asp.Net.I am working in a project where I need to store an attachment which will be uploaded by the user in radGrid into Sql server 2005 database.After storing this attachment, I have to retrieve this attcahment and show the same to the other users in radGrid so that they will be able to download the attachment and see that.How should I do that?what kind of datatype would it be?

C# - Use OnMouseOver To Select A Radgrid Row? stackoverflow.com

I am currently highlighting a row in a radgrid using OnMouseOver. I would like to know if it is possible to use OnMouseOver to select the row rather than highlight it. Alternatively, I would like the highlighted row to remain highlighted if the radgrid loses focus, such as when a confirmation box pops up.

C# - Filtering On RadGrid Not Working? stackoverflow.com

I created a RadGrid with a couple of fields for filtering and I can't seem to get the filtering to work. I can see it clearly posting back (the ajax spinny circle thing) after typing something in the filter box, however my results are always the same. I am using the following definition in the aspx file: <telerik:RadGrid PageSize="4" ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged" Skin="Black" ShowFooter="True" ShowStatusBar="True" AllowFilteringByColumn="True" [Code]....

How To Value Parameters For Sqldatasource forums.asp.net

I set up a sqldatasource based on a stored procedure which takes one parameter.  The sqldatasrouce wizard generates the following code for the parameter below.  The question is how do I value the DeptID parameter on the load of the form.  I tried the following code in the load of the page, but get a null reference error: Me.SqlDataSource1.InsertParameters("DeptID").DefaultValue = Session("DeptID")      <asp:SqlDataSource ID="SqlDataSource1" runat="server"             ConnectionString="<%$ ConnectionStrings:FDConn %>"             SelectCommand="GetTruckStatus" SelectCommandType="StoredProcedure">             <SelectParameters>                 <asp:Parameter Name="DeptID" Type="Int32"  />             </SelectParameters>         </asp:SqlDataSource>         <radG:RadGrid ID="RadGrid1" runat="server">         </radG:RadGrid>

How To Truncate Text Based On The Control Width? www.vbforums.com

Hi,I want to truncate a Text and add ellipsis at the end based on the width of the panel in a status bar control. For example:If the text is "123456789" and if the panel can't show all the text, then I want to know where to truncate, so that I can show the charcters that can fit in along with ellipsis.Thanks

Ajax :: C# - Pass Data To Service Using Telerik Rad Grid Binding? stackoverflow.com

I have a Telerik RadGrid in which I'm implementing custom paging binding to a Ajax Service. How do you pass data like a Search String to the Web Method? The Mark up looks something like this: <telerik:RadGrid ID="radGridProviders" runat="server" AllowPaging="True" PageSize="10" AutoGenerateColumns="false" > <PagerStyle Mode="NextPrevAndNumeric" /> [Code].....

C# - Finding Control On Aspx? stackoverflow.com

I have a Promote.aspx page which has a few radcomboboxes; radTerm and radOldYear. Promote.aspx also has a radgrid which is updatable by a WebUserControl, promote.ascx. This Web user control has a few radcomboboxes, radName and radNewyr.In the promote.ascx.cs, i want to be able to find the comoboxes which are on the promote.aspx. Tried using: RadComboBox tl = (RadComboBox)this.Page.FindControl("radTerm"); in vain!find the controls on the main page. i am calling them thru thewebusercontrol that i load in the radgrid.

Find Control In CommandItemTemplate For RadGrid? stackoverflow.com

I'm using RadGrid from Telerik with three LinkButton controls in CommandItem , and i want to hide or show them using switch statement at code behind. <CommandItemTemplate> <LinkButton runat="server" ID="approveAllLink" Text="Approve All" > </LinkButton> <LinkButton runat="server" ID="approveLink" Text="Approve" > </LinkButton> <LinkButton runat="server" ID="rejectLink" Text="Reject" > </LinkButton> </CommandItemTemplate>

Access: Table To Txt With Column Names www.xtremevbtalk.com

Hello,Due to limitations of Access truncating numbers I use the following code to export my tables to text files:Code:Set adoRS = adoCon.Execute("SELECT * FROM MyTable")Open O_Path & "" & "MyFile.txt" For Output As #1 Do Until adoRS.EOF Print #1, adoRS.GetString(, 100, vbTab, vbCrLf, "");LoopClose #1It works very fine, but I do not get the columns names as the first column. Would someone please tell me how to do that?Your help and time are highly appreciated.Cheers,Julian

Replace Column Value With Description? stackoverflow.com

How to replace cell value with their description. This is my grid <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" GridLines="None"> <HeaderContextMenu EnableAutoScroll="True"> </HeaderContextMenu> <MasterTableView AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="SqlDataSource1"> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" HeaderText="OrderID" ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" SortExpression="CustomerID" UniqueName="CustomerID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime" HeaderText="OrderDate" SortExpression="OrderDate" UniqueName="OrderDate"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="RequiredDate" DataType="System.DateTime" HeaderText="RequiredDate" SortExpression="RequiredDate" UniqueName="RequiredDate"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ShipName" HeaderText="ShipName" SortExpression="ShipName" UniqueName="ShipName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ShipAddress" HeaderText="ShipAddress" SortExpression="ShipAddress" UniqueName="ShipAddress"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ShipCity" HeaderText="ShipCity" SortExpression="ShipCity" UniqueName="ShipCity"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ShipRegion" HeaderText="ShipRegion" SortExpression="ShipRegion" UniqueName="ShipRegion"> </telerik:GridBoundColumn> telerik:GridBoundColumn DataField="ShipPostalCode" HeaderText="ShipPostalCode" SortExpression="ShipPostalCode" UniqueName="ShipPostalCode"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ShipCountry" HeaderText="ShipCountry" SortExpression="ShipCountry" UniqueName="ShipCountry"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> This grid will load Orders table. How to replace CustomerID with CompanyName which is come from Customers table during run time?

OS X :: Customize Width Of Column View In Finder forums.macrumors.com

Can you change the default size of the widths of the columns when you open Finder in Column View? I'm getting tired of grabbing the drag-bars and adjusting every time just so I can read the truncated text in sub-folders.

What's Wrong Here? social.msdn.microsoft.com

[Column 9] == "00000000" ? NULL(DT_WSTR,10) : RIGHT([Column 9],2) + "/" + SUBSTRING([Column 9],5,2) + "/" + SUBSTRING([Column 9],1,4) Where destination sql table own as datatype smalldatetime and accept NULLS. Where Column 9 is defined on the pipeline as [DT_WSTR] with lenght of 10. Otherwise Column 0 is exactly the same than Column 9 and works fine with this expression: RIGHT([Column 0],2) + "/" + SUBSTRING([Column 0],5,2) + "/" + SUBSTRING([Column 0],1,4) [Flat File Source [1]] Error: Data conversion failed. The data conversion for column "Column 9" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".

Import Long Text From Excel Into Table social.msdn.microsoft.com

� Hi everyone, � I've got an excel file that I want to import into a database table. The longest text in a cell is 385 characters. I've made the fields in the table nvarchar(1024). � I created a data flow task for the import. � When I run this task, I get the following error: � [Excel Source [1]] Error: There was an error with output column "Line Text" (52) on output "Excel Source Output" (9). The column status returned was: "Text was truncated or one or more characters had no match in the target code page.". [Excel Source [1]] Error: The "output column "Line Text" (52)" failed because truncation occurred, and the truncation row disposition on "output column "Line Text" (52)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component. � � is it possible that there is a restriction on the length of the text ? � regards, � Filip

Truncate Tables Based On Foreign Key Relationships www.sqlteam.com

Guys, I have 600 tables in my database, out of which 40 tables are look up value tables. I want generate truncate scripts which truncates all the tables in order of Parent child relationship excluding lookup tables. Is there any way to do this apart from figuring out Parent Child relationship and then writing the truncate statements for each of the table. For example EmployeeDetail table references Employee table DepartmentDetail table references Department table Department table references Employee table My truncate script should be TRUNCATE TABLE DEPARTMENTDETAIL TRUNCATE TABLE EMPLOYEEDETAIL TRUNCATE TABLE DEPARTMENT TRUNCATE TABLE EMPLOYEE IS there any automated way to figure out parent and child tables and generate truncate script for the same. Thanks

Update Existing GridView�column As Opposed To Adding�new Columns / Just Before A DataBind forums.asp.net

Please can you translate the above line of C# into VB.NET?At runtime, I'm trying to update an existing GridView column, as opposed to adding new columns, just before a DataBind()

Textbox.text To Show More Than 32kb Of Data www.xtremevbtalk.com

helloi'm reading a file, i want to display it inside a textbox (or some other text control), my file is ~5mb, but the textbox.text property is truncated to 32kb always, so the file content's are truncated,what can i do to show the whole file in the textbox?? is there another control to do this better??thanks for your help

Forms Data Controls :: Controlling A Gridview's Width? forums.asp.net

I have a GridView bound to a SqlDataSource. If the text in a particular column is very long then the Grid view becomes very wide, well off the page. How do I constrain it, if necessary truncating the text displayed? I cannot find the relevant setting in the properties section.

DataSource Controls :: How To Truncate The Table Which Have Foreign Key forums.asp.net

In my database I have more than 10 tables and some of the tables have foreign key relations, I want to truncate all my tables including the table which have foreign key I tried to truncate like truncate table InventorySalesquotationMaster It shows error Cannot truncate table 'InventorySalesquotationMaster' because it is being referenced by a FOREIGN KEY constraint. how can I truncate the table which have foreign key

Loading Excel Range With Vba-array Blows Up In Office > 2000 www.mrexcel.com

I am using the following xlrng.cells(5,1).resize(5,5) = myarray If my array contains a text column with any text cell element > 900 bytes office 2003 and greater blow up in office 2000 it automatically truncates it without blowing up if i write my own load loop, and load each cell individually it works great no-poroblemo, its just extremely slow! Is there any magic way to get this working correctly without truncation and without blowing up?

Parsing Strings With HTML Tags www.phpfreaks.com

Basically I have some articles written with a WYSIWYG editor that are stored in the DB with the HTML tags. I successfully call the DB to get my text, and I want to truncate the length of the text to a certain point for showing preview articles. My problem is that simply using substr() can sometimes chop off the string in the middle of an HTML tag leaving a nasty mess. Does anyone have any suggestions on how to parse the string correctly to avoid truncating in the middle of an HTML tag?

Truncated Data From Textarea Box To Database forums.devshed.com

I have a simple form with a textarea box. The user is supposed to cut/paste text from documents into the textarea box, which is then added using php as a record to a MySQL column of data type mediumtext. The problem - the text keeps getting truncated at about 1800 characters (sometimes more, sometimes less).

Pulling Characters With GET Method www.phpfreaks.com

I am passing various text variables via a URL to a form that uses a command as follows: name="recid" value="<? echo $_GET['recid'] ?>" An example of a recid value that I am passing is 57L2J60)K#LLA:Y however this is being truncated to 57L2J60)K. What can I use to make sure that the full text is captured and not truncated?

Truncate String To Whole Words? www.sitepoint.com

I have written php for ages so i'm really rusty.What i want to do is truncate a string using words not characters but i also don't want it cut off in mid sentence. I want it truncated at a period.I found a couple of functions that either truncate using words or truncate to a period but not both.This function (I found on here) truncates to a periodPHP Code: function�abbr($str,�$maxLen)�{ [code]............

Can I Run DTS To Create A Spreadsheet From Stored Procedure Results www.xtremevbtalk.com

I have a stored procedure on SQL Server and want the results to go to a Spreadsheet. I could cut and paste from the results pane in SQL Server Query Analyser but I have some text fields that are truncated when output. I therefore need a way of getting the full column of text into the spreadsheet.

My DTS Package In Via Enterprise Manager Will Not Export Entire Column To A Text File social.msdn.microsoft.com

I have created a DTS package that pulls data from one column (varchar,600) in a table and exports it to a text file.� The max length in this field is only 285 characters long, however, the end of one of the records is being truncated in the text file.� Data is tab delimited in the table and is being exported that way. Any tips would be greatly appreciated.

Loading Text File Into Table Using Load Data Infile forums.mysql.com

I'm trying to a load a text file ( txt1.txt) file into a table (table1). My table has 2 columns... column 1 (integer), auto increment column 2 (text). I want to load each line in the text file as a new row in my table. And i want to load the contents of the the text file ONLY in column2. (column 1 handles itself.) It goes without saying I expect each row to be of a different length. When I run a simple: load data infile 'txt1.txt' into table table1(column2); I get an error 1262 "Row 2 was truncated;it contained more data than there were input columns

Publishing A Report In Word www.utteraccess.com

When I publish a report from Access to Word, my text lines are sometimes truncated. It doesn't truncated with any kind of a pattern that I can identify and I am new at Access and do not know how to make it pick up my whole text field. Any suggestions? Thank You, Lu

Import Text File To Sqlserver social.msdn.microsoft.com

Hi, I am using DTS to import data from text file to database tables in SQL server2005. there is one big column thay I dont know what data type I should use to� import it, I tried both nvarchar(MAX) and varchar(MAX). but I am getting the following error: � for nvarchar(MAX) , getting the below error: � Error 0xc02020ed: Data Flow Task: Columns "Column 2" and "VendorDesc" cannot convert between unicode and non-unicode string data types. (SQL Server Import and Export Wizard) for varchar(MAX) , getting the below error: � Error 0xc02020a1: Data Flow Task: Data conversion failed. The data conversion for column "Column 2" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.". (SQL Server Import and Export Wizard) � Could you please let me know what data type I can use to handle this column? � Thanks, Gelareh

Retrieving Long Data Type www.vbcity.com

Folks,I am trying to retrieve data from a table/column where the datatype is LONG. Database is Oracle. For some reason, I am unable to retrieve the entire content of the column. The amount of data to be retrieved is very small ... 500-800 bytes but for some reason, the records get truncated to 256 bytes. I have found that if the length of data in the column is 256 bytes or less then the whole text is retrieved other wise it gets truncated to 256 bytes.I am using ADO 2.7 and am using the getchunk method of ADODB.recordset. Can you please tell me what could be the issue here?Thanks

Asp.net - Telerik Rad Grid Button Caption stackoverflow.com

Is there a way to change the caption on a gridButton on a Telerik RADGrid (on a ASP.NET web page) , depending on another of the bound fields (in this case active) e.g if active = true text = "Disable", if active = false then text "Enable" I have resolved the issue by iterating through the e.items on the databound event, but wonder if there a 'cleaner' method for doing this

Forms Data Controls :: Finding The Header Column Clicked In Cs Code? forums.asp.net

I am using ASP.NET 2.0 and C#. I have a gridview, which has template columns. The columns have header text available. I would like to do sorting on each of the column header in the gridview the user clicks. How to identify which column, the user has clicked?

Single SQL Update Statements social.msdn.microsoft.com

� What is the single SQL statement to truncate the blank space on either side of data. Ex. Table1 has Name as column. I have records filled with blank space on both side for Name field. With one query I want to correct (truncate the leading and trailing space) the data. How? SQL Server 2005 SP2. Thank you, Smith

What Errors Normally Should I Log For My SSIS Package? social.msdn.microsoft.com

�� I got an SSIS package � that first "truncate the product table" then populate the table with new rows....if there is an error then i will invoke the send email task. However in the "truncate the product table" task, the sql i put "truncate dbo.product" instead of "truncate table dbo.product" but this error is not captured in the text file that I m going to send an email to the appropriate personnel. � Under�logging, and when i go into "truncate�product table" tasks , "Details", i saw "OnError", "OnWarning" and other error handlers...which should i tick in order for the text file to ONLY show errors I encounteered during the running of the SSIS package?

SSIS DataFlow Truncate While Processing social.msdn.microsoft.com

� Hi, � �I was using SSIS for our ETL Process , one of the my DATA Flow have to truncate based on the data , suppose for example � i am have the following data � Filename : Employee Columns Empid , Employee 1����������� XXXXX 2����������� YYYY 3����������� ZZZZ � � i am using flatfilesource for reading data�. for example for a condition if empid='2' means i have to truncate the dataflow , it is possible or not ? � Please help me � Thanks in Advance Raja Ragothaman � � � � � �

Use Truncate Function In Column Expression? www.vbforums.com

i want to set a complex column expression truncate(cdbl(Today()-date2)/30)*(parent(parentchild).field1/parent(parentchild(filed2)))but truncate function is not available !

Vba: Determine If Cell Value Is In A Range www.ozgrid.com

Column A contains a giant list of pathogens, with each often appearing in several ways (with/without species name, various misspellings, etc.) Column B contains truncated versions of maybe 20 or so pathogens that I'm interested in. What I want in column C is for an "X" or something to appear every time the code finds a pathogen of interest (that is, from column B) in the corresponding row of column A. For example:.............

Is Using An EntityDataSource In Keeping With The MVC Pattern stackoverflow.com

I'm utterly new to APS.NET and in particular the MVC model...! I have a Telerik RadGrid control that I'm using. Until now (following NerdDinner) I was having the Model passed back to the view and this provided access to the various properties I wanted. eg: Inherits="System.Web.Mvc.ViewPage<MySqlMvc.Helpers.PaginatedList<MySqlMvc.Models.Customer>> .. lets me loop around the Model object and extract Customer data. This RadGrid control, however, needs me to use an EntityDataSource (hooked up via the designer). Does this have implications for maintaing the MVC pattern? I'm a little confused about how the EntityDataSource works in relation to my Model.EDIT: I do know there is an MVC version of the RadGrid but we also need the RadScheduler and a few others.. besides that, I'd still like to know the impact.

Bind DropDownList With Hierarchy From SQL Server Table? stackoverflow.com

I have the following sql table which contains menu (website menu) data. Table Name: MenuItems Columns: Id, MenuId, ParentMenuItemId, Text. My goal is to bind a DDL according to the following hierarchy (example): Id: 1, MenuId: 1, ParentMenuItemId: -1, Text: 'One' Id: 2, MenuId: 1, ParentMenuItemId: 1, Text: 'Two' Id: 3, MenuId: 1, ParentMenuItemId: 1, Text: 'Three' Id: 4, MenuId: 1, ParentMenuItemId: 2, Text: 'Four' Id: 5, MenuId: 1, ParentMenuItemId: 4, Text: 'Five' Requested result in DDL: One -- Two ---- Four ------ Five -- Three I think it should contain 'WITH' SQL command. Note: I'm using C#.

Offtopic Sorta: Log Parser To SQL Question www.sqlteam.com

This is a question for anyone familiar with log parser. I use log parser to insert the IIS log information into our SQL database. It has been working great but we have now run into 1 problem. I have been using a SELECT * statement before to put all the IIS log info into a SQL table and it works fine. I want to add 1 extra column to the SQL table though (a primary key). It wont let me use the select * statement anymore because the fields do not match. I even tried specifying the fields one by one but it will not work because there is a different amount of columns now. What I did was I modified the table already there with a new column (RecordID which is a auto-increment primary key). Can someone please give me advice on how I should persue this? Keep the table with the new design and input the data differently, or somehow specify this new primary key column in the logparser statement. OLD COMMAND logparser.exe "SELECT * INTO tblIISLog_NEW FROM \Hamweb001LogFilesW3SVC85298408*.log" -o:SQL -server:hamdev005 -database:IISLOG_REPORTS -driver:"SQL Server" -createTable:ON -i:IISW3C -iCheckPoint:d:checkpointweb.lpc>>checkpointweblog.txt NEW COMMAND I TRIED logparser.exe "SELECT LogFilename, LogRow, date, time, c-ip, cs-username, s-sitename, s-computername, s-ip, s-port, cs-method, cs-uri-stem, cs-uri-query, sc-status, sc-substatus, sc-win32-status, sc-bytes, cs-bytes, time-taken, cs-version, cs-host, cs(User-Agent), cs(Cookie), cs(Referer), s-event, s-process-type, s-user-time, s-kernel-time, s-page-faults, s-total-procs, s-active-procs, s-stopped-procs INTO tblIISLog_NEW FROM \Hamweb001LogFilesW3SVC85298408*.log" -o:SQL -server:hamdev005 -database:IISLOG_REPORTS -driver:"SQL Server" -createTable:ON -i:IISW3C -iCheckPoint:d:checkpointweb.lpc>>checkpointweblog.txt Errors I get now: 1) Number of columns in table 'tblIISLog_NEW' (33) is different than number of columns in SELECT clause (32) 2) SQL table column "RecordID" data type is not compatible with SELECT clause item "LogFilename" (type STRING) Thank you

Asp.net Telerik Text Selection stackoverflow.com

I have a telerik radgrid, like shown underneath [code]When I click one of the rows, it will display the password of the clicked row, like so:[code]That works fine. I am proceeding this way because the decryption of the password is a rather complicated and long process, so decrypting one password at a time is less time consuming, especially when the user doesn't need all the passwords.When I have the password displayed, I'd like to be able to select the password in the grid to copy it. Unfortunately, the radgrid will fire the "RowClick" item command once more, and the row gets de-selected. Therefore, I cannot copy the passwords. My question is: Is there a way to cancel the itemcommand of a radgrid under certain circumstances? I'd like to be able to disable the itemcommand event when the password is already decrypted.[code]

Asp.net - Update Telerik ComboBox And RadGrid? stackoverflow.com

I have inherited an application that uses telerik controls. This is my first time to work with it and I'm a little confused.I have a RadComboBox that has its values hard coded. When the user selects an item, a RadGrid is refreshed to show the records that correlate with the item the user selects from this combo box. This all works great.I'm trying to create link buttons, so that when the user clicks on one, the RadComboBox value is changed to whatever value I set it to in the codebeind page and the RadGrid is refreshed to show the appropriate records.I can set the value of the RadComboBox, and see what value it has when debugging, but the RadComboBox in the browser does not reflect the change and the RadGrid is not refreshed when I programatically execute the event handler for it.

Forms Data Controls :: How To Hide The Column In Grid View When Binding From Code Behing Page forums.asp.net

I have a grid view which I am binding it through my .cs file code: I need to hide a column, From the Below code I am able to hide the column but not the header and footer design. So how can I hide my column when I dont have any columns in my gridview (I mean in .ASPX page) MyCode: [Code].... .cs Code: protected void Row_Grid(Object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Cells[9].Visible = false; } }

C# - Telerik RadGrid - How To Set The MaxLength For The Insert Textbox stackoverflow.com

I have a radGrid on the page with the "Add New Record" button. When I click the "Add New Record" button, a textbox appears above each column that allows me to enter values. I want to limit the number of characters that can be entered in the textbox. How do I set the MaxLength of those textboxes

Web Forms :: Dropdown Selected Item Not Display? forums.asp.net

I use telerik radgrid, where i add dropdown column for add and edit new grid row.When i update grid row item the dropdown value is not disply in dropdown list, but disply in dropdown first data.

Using Checkbox In Template Column - Denying Multiple Selections? stackoverflow.com

I have the followingh scenario where I have a radgrid and inside it, I have a template column containing a check box: [code].... However, I only really want the user to be able to select one checkbox at a time. Therefore, how to I go about ensuring that the any previous 'checks' are removed or stopping multiple checking altogether?

Telerik Grid - Export To CSV More Columns Than Displayed On Screen? stackoverflow.com

Problem: How to display more columns in a Telerik grid than are displayed in the rendered grid? eg I'd like to only display on the screen the Surname, but on dump to csv would like firstname too. I've tried visible = false, and display = false on the GridBoundColumns, but then they don't come out on the csv. <telerik:RadGrid ID="grdAuctions" runat="server" AllowAutomaticDeletes="True" AllowAutomaticUpdates="True" AllowPaging="False" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="odsAuctionSales" GridLines="None" EnableEmbeddedSkins="False" OnItemDataBound="grdAuctionSales_ItemDataBound"> <ExportSettings HideStructureColumns="true" /> [Code]....

Access :: Syntax Error (missing Operator) In Query Expression forums.asp.net

im using MS-Access database, i tried to add some data to the database from C#. the column datatype is Memo. From front-end, the user type some text on HTML editor that content to be add to this column, if i enter minimal text then data is adding fine but, if enter 2 or 3page content then im getting error as [code]....

Databases :: Use MySQL Replace Function In C#? forums.asp.net

I am trying to use the MySQL replace function in C# but the resulting data ignores the columns inside the REPLACE function - i guess its because C# has its own Replace function get the required column either through Mysql escape sequence or in the C# syntax MySqlConnection mySqlConnection1 = new MySqlConnection("server=localhost; database=faohr; pooling=false; allow zero datetime=yes;");

Create A Cron Job That Truncates A Database Table? www.phpfreaks.com

I am trying to create a cron job that truncates a database table, then inserts data back into the table, The cron jobs works fine, if i just truncate the table, but does not seem to work if i want to re-insert data back in the table. truncate.php looks as follows: <?php require_once('/usr/www/users/amisea/sosams/db-connecter.php'); $query = "TRUNCATE TABLE tmpsessionmodule; [code]....

How To Solve Data Out Of Range Issue In VB www.vbforums.com

Hi,I am multiplying two unsigned32 bit variables in C.After multiplication I am getting a truncated Value(C is having the property of truncating values using some logic if it is greater than a specific value.I dont know that logic).When i am multiplying the same variables in VB i am getting a value which is different from the truncated value in C.Can any one give solution,how i can write the code in VB with the truncating logic of C so that i will get the same result.Any relevent feedback will be appriciated.Thanks in advance

Using Telerik RadGrid - How To Set The Date Format For Autogenerated Column In Edit Mode stackoverflow.com

Using VS2008, and Telerik radGrid version 2010.1.519.35 I have a about 50 DNN modules using telerik radgrid and I need to display my dates in dd/mm/yy format. It is possible to do this easily in view mode, but when I switch to edit mode, it is more of a struggle. I can write a snippit of code to reformat the displayed date values to dd/mm/yy, but for inserts the user must enter mm/dd/yy. IOW, I need to change the culture of the form to en-GB culture. In my DotnetNuke App, I have made a change to the web.config, but it still assumes en-US format. I am not sure whether I need to set this at web.config level, page level or at the column within the control.

Handling Datagridviewcomboboxcell Event? social.msdn.microsoft.com

I have come accross many scenarios of handling datagridviewcombobox events, however none seem to fit my scenario, or I may be missing something.1. I need to capture the column index that the combobox is resident in. This is because I have a complete row of comboboxes that should set the header text to the selected value.here is the code I have so far:' I also use a list of string as datasource publicly declared Public cs As New List(Of String) 'to insert the combo's into the grid Dim row As New DataGridViewRow cs.add("Book") cd.Add("Author") [code]....